Re: [PATCH] support for gzipped (ELF) core dumps

From: Shaheed
Date: Thu Jan 13 2005 - 08:36:06 EST


On Thursday 13 January 2005 11:51, Jan Frey wrote:
> Hi,
>
> I tried to use those "in-kernel" functions, but they seem to do little
> different CRC calculations. Unfortunately I don't have any experiences
> with CRC stuff, anyone able to help here?

Do you know what polynomial you are trying to use? My first try wth Google
gets me to:

http://www.cyphercalc.com/crctool.htm#LookupTables

not to mention a bunch of free sources such as:

http://www.repairfaq.org/filipg/LINK/F_crc_v35.html

which even implies that the pkzip polynomial *is* the standard one. If you
really need the unrolled version for performance, at least use the right data
types and/or consider to compute the tables at run time:

http://gcc.gnu.org/ml/gcc-patches/2002-04/msg01097.html

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/