hash/Makefile.am, hash/crc32.h: Make the CRC table be `const'.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 4 Sep 2019 17:41:14 +0000 (18:41 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 4 Sep 2019 21:33:21 +0000 (22:33 +0100)
Yay.  That's an extra kilobyte of sharable data.

hash/Makefile.am
hash/crc32.h

index c6c7bb6..877cd3a 100644 (file)
@@ -51,7 +51,7 @@ $(precomp)/crc32-tab.c:
        @$(mkdir_p) $(precomp)
        @$(MAKE) crc-mktab$(EXEEXT)
        $(AM_V_GEN)./crc-mktab -o $@.new \
-               -p0x04c11db7 -b32 -B8 -r -c \
+               -p0x04c11db7 -b32 -B8 -r -cC \
                -scrc32_table -icrc32.h -tuint32 && \
        mv $@.new $@
 endif
index 7482dc4..429306e 100644 (file)
@@ -40,7 +40,7 @@
 
 /*----- External values ---------------------------------------------------*/
 
-extern uint32 crc32_table[256];
+extern const uint32 crc32_table[256];
 
 /*----- Macros ------------------------------------------------------------*/