GeezerVison is showing github.com — deps: update zlib to 982b036 · nodejs/node@78cffcd
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: deps/zlib/BUILD.gn +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -359,7 +359,7 @@ component("zlib") { | 359 | 359 | if (is_android) { | 360 | 360 | import("//build/config/android/config.gni") | 361 | 361 | if (defined(android_ndk_root) && android_ndk_root != "") { | 362 | | - deps += [ "//third_party/android_ndk:cpu_features" ] | | 362 | + deps += [ "//third_party/cpu_features:ndk_compat" ] | 363 | 363 | } else { | 364 | 364 | assert(false, "CPU detection requires the Android NDK") | 365 | 365 | } | |
Collapse file Copy file name to clipboardExpand all lines: deps/zlib/adler32.c +5-27Lines changed: 5 additions & 27 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 7 | 7 |
| 8 | 8 | #include "zutil.h" | 9 | 9 |
| 10 | | -local uLong adler32_combine_ OF((uLong adler1, uLong adler2, z_off64_t len2)); | 11 | | - | 12 | 10 | #define BASE 65521U /* largest prime smaller than 65536 */ | 13 | 11 | #define NMAX 5552 | 14 | 12 | /* NMAX is the largest n such that 255n(n+1)/2 + (n+1)(BASE-1) <= 2^32-1 */ | @@ -65,11 +63,7 @@ local uLong adler32_combine_ OF((uLong adler1, uLong adler2, z_off64_t len2)); | 65 | 63 | #endif | 66 | 64 |
| 67 | 65 | /* ========================================================================= */ | 68 | | -uLong ZEXPORT adler32_z(adler, buf, len) | 69 | | - uLong adler; | 70 | | - const Bytef *buf; | 71 | | - z_size_t len; | 72 | | -{ | | 66 | +uLong ZEXPORT adler32_z(uLong adler, const Bytef *buf, z_size_t len) { | 73 | 67 | unsigned long sum2; | 74 | 68 | unsigned n; | 75 | 69 |
| @@ -159,20 +153,12 @@ uLong ZEXPORT adler32_z(adler, buf, len) | 159 | 153 | } | 160 | 154 |
| 161 | 155 | /* ========================================================================= */ | 162 | | -uLong ZEXPORT adler32(adler, buf, len) | 163 | | - uLong adler; | 164 | | - const Bytef *buf; | 165 | | - uInt len; | 166 | | -{ | | 156 | +uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len) { | 167 | 157 | return adler32_z(adler, buf, len); | 168 | 158 | } | 169 | 159 |
| 170 | 160 | /* ========================================================================= */ | 171 | | -local uLong adler32_combine_(adler1, adler2, len2) | 172 | | - uLong adler1; | 173 | | - uLong adler2; | 174 | | - z_off64_t len2; | 175 | | -{ | | 161 | +local uLong adler32_combine_(uLong adler1, uLong adler2, z_off64_t len2) { | 176 | 162 | unsigned long sum1; | 177 | 163 | unsigned long sum2; | 178 | 164 | unsigned rem; | @@ -197,18 +183,10 @@ local uLong adler32_combine_(adler1, adler2, len2) | 197 | 183 | } | 198 | 184 |
| 199 | 185 | /* ========================================================================= */ | 200 | | -uLong ZEXPORT adler32_combine(adler1, adler2, len2) | 201 | | - uLong adler1; | 202 | | - uLong adler2; | 203 | | - z_off_t len2; | 204 | | -{ | | 186 | +uLong ZEXPORT adler32_combine(uLong adler1, uLong adler2, z_off_t len2) { | 205 | 187 | return adler32_combine_(adler1, adler2, len2); | 206 | 188 | } | 207 | 189 |
| 208 | | -uLong ZEXPORT adler32_combine64(adler1, adler2, len2) | 209 | | - uLong adler1; | 210 | | - uLong adler2; | 211 | | - z_off64_t len2; | 212 | | -{ | | 190 | +uLong ZEXPORT adler32_combine64(uLong adler1, uLong adler2, z_off64_t len2) { | 213 | 191 | return adler32_combine_(adler1, adler2, len2); | 214 | 192 | } |
Collapse file Copy file name to clipboardExpand all lines: deps/zlib/compress.c +5-16Lines changed: 5 additions & 16 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 19 | 19 | memory, Z_BUF_ERROR if there was not enough room in the output buffer, | 20 | 20 | Z_STREAM_ERROR if the level parameter is invalid. | 21 | 21 | */ | 22 | | -int ZEXPORT compress2(dest, destLen, source, sourceLen, level) | 23 | | - Bytef *dest; | 24 | | - uLongf *destLen; | 25 | | - const Bytef *source; | 26 | | - uLong sourceLen; | 27 | | - int level; | 28 | | -{ | | 22 | +int ZEXPORT compress2(Bytef *dest, uLongf *destLen, const Bytef *source, | | 23 | + uLong sourceLen, int level) { | 29 | 24 | z_stream stream; | 30 | 25 | int err; | 31 | 26 | const uInt max = (uInt)-1; | @@ -65,22 +60,16 @@ int ZEXPORT compress2(dest, destLen, source, sourceLen, level) | 65 | 60 |
| 66 | 61 | /* =========================================================================== | 67 | 62 | */ | 68 | | -int ZEXPORT compress(dest, destLen, source, sourceLen) | 69 | | - Bytef *dest; | 70 | | - uLongf *destLen; | 71 | | - const Bytef *source; | 72 | | - uLong sourceLen; | 73 | | -{ | | 63 | +int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, | | 64 | + uLong sourceLen) { | 74 | 65 | return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION); | 75 | 66 | } | 76 | 67 |
| 77 | 68 | /* =========================================================================== | 78 | 69 | If the default memLevel or windowBits for deflateInit() is changed, then | 79 | 70 | this function needs to be updated. | 80 | 71 | */ | 81 | | -uLong ZEXPORT compressBound(sourceLen) | 82 | | - uLong sourceLen; | 83 | | -{ | | 72 | +uLong ZEXPORT compressBound(uLong sourceLen) { | 84 | 73 | sourceLen = sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + | 85 | 74 | (sourceLen >> 25) + 13; | 86 | 75 | /* FIXME(cavalcantii): usage of CRC32 Castagnoli as a hash function | |
Collapse file Copy file name to clipboardExpand all lines: deps/zlib/contrib/optimizations/inffast_chunk.c +1-4Lines changed: 1 addition & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 72 | 72 | requires strm->avail_out >= 260 for each loop to avoid checking for | 73 | 73 | available output space while decoding. | 74 | 74 | */ | 75 | | -void ZLIB_INTERNAL inflate_fast_chunk_(strm, start) | 76 | | -z_streamp strm; | 77 | | -unsigned start; /* inflate()'s starting value for strm->avail_out */ | 78 | | -{ | | 75 | +void ZLIB_INTERNAL inflate_fast_chunk_(z_streamp strm, unsigned start) { | 79 | 76 | struct inflate_state FAR *state; | 80 | 77 | z_const unsigned char FAR *in; /* local strm->next_in */ | 81 | 78 | z_const unsigned char FAR *last; /* have enough input while in < last */ | |
Collapse file Copy file name to clipboardExpand all lines: deps/zlib/contrib/optimizations/inffast_chunk.h +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 39 | 39 | #define INFLATE_FAST_MIN_OUTPUT 260 | 40 | 40 | #endif | 41 | 41 |
| 42 | | -void ZLIB_INTERNAL inflate_fast_chunk_ OF((z_streamp strm, unsigned start)); | | 42 | +void ZLIB_INTERNAL inflate_fast_chunk_(z_streamp strm, unsigned start); |
|