Re: Add crc32 function to libiberty

2009-07-24 Thread DJ Delorie
> Your code uses the (one and only) CRC-32 polynomial 0x04c11db7, so just > describing it as the "CRC-32" function should be sufficient documentation. > It's the same CRC function as used by PKZIP, Ethernet, and chksum. > It's not compatible with the Intel CRC32 instruction which uses the > CRC-32

Re: Add crc32 function to libiberty

2009-07-24 Thread Ross Ridge
DJ Delorie writes: >I didn't reference the web site for the polynomial, just for background. >To be honest, I'm not sure what the polynomial is. As the comments >explain, the algorithm I used is precisely taken from gdb, in remote.c, >and is intended to produce the same result. Does anybody on th