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

From: Shaheed
Date: Sat Jan 08 2005 - 12:29:06 EST




>+/* This table is needed for efficient CRC32 calculation */
>+static const unsigned long crc_table[8][256] = {
>+ {
>+ 0x00000000UL, 0x77073096UL, 0xee0e612cUL, 0x990951baUL, 0x076dc419UL,

First, by using "unsigned long", you may be doubling the size on most 64 bit
platforms. Second, I'm pretty sure there is a standard implementation of
several CRCs already in the kernel - is there a reason not to use one of them
(e.g. a different polynomial)?
-
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/