1 | /* inffast_chunk.h -- header to use inffast_chunk.c |
2 | * Copyright (C) 1995-2003, 2010 Mark Adler |
3 | * Copyright (C) 2017 ARM, Inc. |
4 | * For conditions of distribution and use, see copyright notice in zlib.h |
5 | */ |
6 | |
7 | /* WARNING: this file should *not* be used by applications. It is |
8 | part of the implementation of the compression library and is |
9 | subject to change. Applications should only use zlib.h. |
10 | */ |
11 | |
12 | #include "inffast.h" |
13 | |
14 | /* INFLATE_FAST_MIN_INPUT: the minimum number of input bytes needed so that |
15 | we can safely call inflate_fast() with only one up-front bounds check. One |
16 | length/distance code pair (15 bits for the length code, 5 bits for length |
17 | extra, 15 bits for the distance code, 13 bits for distance extra) requires |
18 | reading up to 48 input bits (6 bytes). The wide input data reading option |
19 | requires a little endian machine, and reads 64 input bits (8 bytes). |
20 | */ |
21 | #ifdef INFLATE_CHUNK_READ_64LE |
22 | #undef INFLATE_FAST_MIN_INPUT |
23 | #define INFLATE_FAST_MIN_INPUT 8 |
24 | #endif |
25 | |
26 | void ZLIB_INTERNAL inflate_fast_chunk_ OF((z_streamp strm, unsigned start)); |
27 | |