]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Remove support for DYNAMIC_CRC_TABLE which was broken.
authorNathan Moinvaziri <nathan@nathanm.com>
Thu, 7 May 2020 14:36:32 +0000 (07:36 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Mon, 25 May 2020 13:17:46 +0000 (15:17 +0200)
functable.c
zutil.c

index 17cc8125927defd80e3f72f6e35127b40685a7b1..cb6fd2a965dd66c3e00228033723b5b0428affb2 100644 (file)
@@ -48,11 +48,6 @@ extern uint32_t adler32_neon(uint32_t adler, const unsigned char *buf, size_t le
 /* CRC32 */
 ZLIB_INTERNAL uint32_t crc32_generic(uint32_t, const unsigned char *, uint64_t);
 
-#ifdef DYNAMIC_CRC_TABLE
-extern volatile int crc_table_empty;
-extern void make_crc_table(void);
-#endif
-
 #ifdef __ARM_FEATURE_CRC32
 extern uint32_t crc32_acle(uint32_t, const unsigned char *, uint64_t);
 #endif
@@ -201,10 +196,6 @@ ZLIB_INTERNAL uint32_t crc32_stub(uint32_t crc, const unsigned char *buf, uint64
            "crc32_z takes size_t but internally we have a uint64_t len");
     /* return a function pointer for optimized arches here after a capability test */
 
-#ifdef DYNAMIC_CRC_TABLE
-    if (crc_table_empty)
-        make_crc_table();
-#endif /* DYNAMIC_CRC_TABLE */
     cpu_check_features();
 
     if (sizeof(void *) == sizeof(ptrdiff_t)) {
diff --git a/zutil.c b/zutil.c
index 35cc236f70aef48752de5cd3898349b614469406..197a2c541f96dca5d9a5eb8ee6eb0fd8f7721dfc 100644 (file)
--- a/zutil.c
+++ b/zutil.c
@@ -69,9 +69,7 @@ unsigned long ZEXPORT PREFIX(zlibCompileFlags)(void) {
 #ifdef ZLIB_WINAPI
     flags += 1 << 10;
 #endif
-#ifdef DYNAMIC_CRC_TABLE
-    flags += 1 << 13;
-#endif
+    /* Bit 13 reserved for DYNAMIC_CRC_TABLE */
 #ifdef NO_GZCOMPRESS
     flags += 1L << 16;
 #endif