[linux-usb-devel] Re: [PATCH 5/10] expose crc defs to speedtouch

2003-02-16 Thread Greg KH
On Sun, Feb 16, 2003 at 06:42:23PM +0100, Duncan Sands wrote: > On Sunday 16 February 2003 18:31, Greg KH wrote: > > On Fri, Feb 07, 2003 at 09:00:46AM +0100, Duncan Sands wrote: > > > -#define CRC32(c,crc) (crc32tab[((size_t)(crc>>24) ^ (c)) & 0xff] ^ > > > (((crc) << 8))) > > > > Is there any rea

[linux-usb-devel] Re: [PATCH 5/10] expose crc defs to speedtouch

2003-02-16 Thread Duncan Sands
On Sunday 16 February 2003 18:31, Greg KH wrote: > On Fri, Feb 07, 2003 at 09:00:46AM +0100, Duncan Sands wrote: > > -#define CRC32(c,crc) (crc32tab[((size_t)(crc>>24) ^ (c)) & 0xff] ^ > > (((crc) << 8))) > > Is there any reason you can't use the crc code that's already in the > kernel? > > > +unsi

[linux-usb-devel] Re: [PATCH 5/10] expose crc defs to speedtouch

2003-02-16 Thread Greg KH
On Fri, Feb 07, 2003 at 09:00:46AM +0100, Duncan Sands wrote: > -#define CRC32(c,crc) (crc32tab[((size_t)(crc>>24) ^ (c)) & 0xff] ^ (((crc) << 8))) Is there any reason you can't use the crc code that's already in the kernel? > +unsigned long calc_crc (char *mem, int len, unsigned initial); I've