• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:with +full:- +full:brotli

16 #include <brotli/port.h>
17 #include <brotli/types.h>
25 /* Specification: 3.3. Alphabet sizes: insert-and-copy length */
40 /* "Large Window Brotli" */
44 * brotli, for 64-bit encoders and decoders. Even when in practice 32-bit
46 * set to 62 because it affects the large window brotli file format.
53 * The maximum supported large brotli window bits by the encoder and decoder.
54 * Large window brotli allows up to 62 bits, however the current encoder and
55 * decoder, designed for 32-bit integers, only support up to 30 bits maximum.
64 * Number of "postfix" bits is stored as 2 bits in meta-block header.
77 /* ((1 << 26) - 4) is the maximal distance that can be expressed in RFC 7932
78 brotli stream using NPOSTFIX = 0 and NDIRECT = 0. With other NPOSTFIX and
82 /* ((1 << 31) - 4) is the safe distance limit. Using this number as a limit
101 with BROTLI_NUM_DISTANCE_SHORT_CODES. */
103 #define BROTLI_MAX_BACKWARD_LIMIT(W) (((size_t)1 << (W)) - BROTLI_WINDOW_GAP)
113 This limits are designed to support fast and safe 32-bit decoders.
114 "32-bit" means that signed integer values up to ((1 << 31) - 1) could be
117 Brotli distance alphabet symbols do not represent consecutive distance
120 A "group" of consecutive (1 << NPOSTFIX) symbols represent non-interleaved
131 including "constants.h" use it -> compiler warns about that. */ in BrotliCalculateDistanceCodeLimit()
142 uint32_t offset = forbidden_distance - ndirect - 1; in BrotliCalculateDistanceCodeLimit()
148 uint32_t postfix = (1u << npostfix) - 1; in BrotliCalculateDistanceCodeLimit()
151 /* Remove postfix and "head-start". */ in BrotliCalculateDistanceCodeLimit()
155 /* Poor-man's log2floor, to avoid extra dependencies. */ in BrotliCalculateDistanceCodeLimit()
157 /* One bit is covered with subrange addressing ("half"). */ in BrotliCalculateDistanceCodeLimit()
158 ndistbits--; in BrotliCalculateDistanceCodeLimit()
162 group = ((ndistbits - 1) << 1) | half; in BrotliCalculateDistanceCodeLimit()
171 group--; in BrotliCalculateDistanceCodeLimit()
175 extra = (1u << ndistbits) - 1; in BrotliCalculateDistanceCodeLimit()
177 start = (1u << (ndistbits + 1)) - 4; in BrotliCalculateDistanceCodeLimit()
196 /* "Soft-private", it is exported, but not "advertised" as API. */