On Sat, Aug 20, 2016 at 07:44:46PM +0000, Jaromir Dolecek wrote: > Module Name: src > Committed By: jdolecek > Date: Sat Aug 20 19:44:46 UTC 2016 > > Modified Files: > src/sys/dev/usb: utoppy.c > Added Files: > src/sys/lib/libkern: crc16.h > > Log Message: > extract crc16 code from utoppy driver to a separate file in libkern, for use > by ext2fs; every usage gets their own copy of the table for now, as it's > fairly small, and too rare to be used to be useful pulling into every kernel
I'd prefer to keep this in a separate source file and follow the approach of crc32 to build the table at runtime. The cost is pretty small for that and saves space. Joerg