mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
fa20edc44d
- Remove most __ASSEMBLER__ __LINKER__ ifdefs - Rename libc/intrin/bits.h to libc/serialize.h - Block pthread cancelation in fchmodat() polyfill - Remove `clang-format off` statements in third_party
24 lines
1,001 B
C
24 lines
1,001 B
C
#ifndef COSMOPOLITAN_THIRD_PARTY_ZLIB_INFFAST_INTERNAL_H_
|
|
#define COSMOPOLITAN_THIRD_PARTY_ZLIB_INFFAST_INTERNAL_H_
|
|
#include "third_party/zlib/zlib.h"
|
|
COSMOPOLITAN_C_START_
|
|
|
|
/* INFLATE_FAST_MIN_INPUT: the minimum number of input bytes needed so that
|
|
we can safely call inflate_fast() with only one up-front bounds check. One
|
|
length/distance code pair (15 bits for the length code, 5 bits for length
|
|
extra, 15 bits for the distance code, 13 bits for distance extra) requires
|
|
reading up to 48 input bits (6 bytes).
|
|
*/
|
|
#define INFLATE_FAST_MIN_INPUT 6
|
|
|
|
/* INFLATE_FAST_MIN_OUTPUT: the minimum number of output bytes needed so that
|
|
we can safely call inflate_fast() with only one up-front bounds check. One
|
|
length/distance code pair can output up to 258 bytes, which is the maximum
|
|
length that can be coded.
|
|
*/
|
|
#define INFLATE_FAST_MIN_OUTPUT 258
|
|
|
|
void inflate_fast(z_streamp strm, unsigned start);
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* COSMOPOLITAN_THIRD_PARTY_ZLIB_INFFAST_INTERNAL_H_ */
|