aboutsummaryrefslogtreecommitdiff
path: root/zlib.map
diff options
context:
space:
mode:
authorMark Adler <git@madler.net>2026-01-05 01:15:38 -0600
committerMark Adler <git@madler.net>2026-01-05 15:03:04 -0600
commitc267ef7306fe9fc1399833e3556cd9798dec2eb0 (patch)
treebc18574b8ea4fc37befdf0174fb5f04472911f6f /zlib.map
parent916dc1ac351795c9bf86a3d19c3667b014b9d28e (diff)
downloadzlib-c267ef7306fe9fc1399833e3556cd9798dec2eb0.tar.gz
zlib-c267ef7306fe9fc1399833e3556cd9798dec2eb0.tar.bz2
zlib-c267ef7306fe9fc1399833e3556cd9798dec2eb0.zip
Use atomics to build inflate fixed tables once.
This moves the once code from crc32.c to zutil.c, and uses it also for building the inflate fixed tables when BUILDFIXED is defined. The fixed tables are now housed in inftrees.c, shared by inflate.c and infback.c. The once() function is now external, and so is renamed to z_once() to avoid name collisions. If either BUILDFIXED or DYNAMIC_CRC_TABLE is defined, and atomics are not available, then a warning is issued noting that zlib is not thread-safe.
Diffstat (limited to 'zlib.map')
-rw-r--r--zlib.map2
1 files changed, 2 insertions, 0 deletions
diff --git a/zlib.map b/zlib.map
index e267d82..aba65ab 100644
--- a/zlib.map
+++ b/zlib.map
@@ -11,9 +11,11 @@ ZLIB_1.2.0 {
11 inflate_copyright; 11 inflate_copyright;
12 inflate_fast; 12 inflate_fast;
13 inflate_table; 13 inflate_table;
14 inflate_fixed;
14 zcalloc; 15 zcalloc;
15 zcfree; 16 zcfree;
16 z_errmsg; 17 z_errmsg;
18 z_once;
17 gz_error; 19 gz_error;
18 gz_intmax; 20 gz_intmax;
19 _*; 21 _*;