diff options
| author | Mark Adler <git@madler.net> | 2026-01-04 10:34:44 -0600 |
|---|---|---|
| committer | Mark Adler <git@madler.net> | 2026-01-05 15:03:04 -0600 |
| commit | 916dc1ac351795c9bf86a3d19c3667b014b9d28e (patch) | |
| tree | 08efd9aa0c5387fe80c1ce15a9fdb0ca8e29c01c /os400/bndsrc | |
| parent | fd366384cf324d750596feb03be44ddf4d1e6acd (diff) | |
| download | zlib-916dc1ac351795c9bf86a3d19c3667b014b9d28e.tar.gz zlib-916dc1ac351795c9bf86a3d19c3667b014b9d28e.tar.bz2 zlib-916dc1ac351795c9bf86a3d19c3667b014b9d28e.zip | |
Add compressBound_z and deflateBound_z functions for large values.
These take and return size_t integers, instead of unsigned longs,
for those platforms with 32-bit longs. This commit also assures
that overflows of either integer type results in the maximum value
for that type, instead of wrapping to small values.
Diffstat (limited to 'os400/bndsrc')
| -rw-r--r-- | os400/bndsrc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/os400/bndsrc b/os400/bndsrc index 2c1c79c4..ce48ff4d 100644 --- a/os400/bndsrc +++ b/os400/bndsrc | |||
| @@ -125,9 +125,16 @@ STRPGMEXP PGMLVL(*CURRENT) SIGNATURE('ZLIB') | |||
| 125 | EXPORT SYMBOL("crc32_combine_op") | 125 | EXPORT SYMBOL("crc32_combine_op") |
| 126 | 126 | ||
| 127 | /*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/ | 127 | /*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/ |
| 128 | /* Version 1.3.1.2 additional entry points. */ | 128 | /* Version 1.3.1.2 additional entry points. */ |
| 129 | /*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/ | 129 | /*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/ |
| 130 | 130 | ||
| 131 | EXPORT SYMBOL("deflateUsed") | 131 | EXPORT SYMBOL("deflateUsed") |
| 132 | 132 | ||
| 133 | /*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/ | ||
| 134 | /* Version 1.3.2 additional entry points. */ | ||
| 135 | /*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/ | ||
| 136 | |||
| 137 | EXPORT SYMBOL("compressBound_z") | ||
| 138 | EXPORT SYMBOL("deflateBound_z") | ||
| 139 | |||
| 133 | ENDPGMEXP | 140 | ENDPGMEXP |
