Lines Matching refs:npostfix
29 uint32_t npostfix, uint32_t ndirect) { in BrotliInitDistanceParams() argument
33 dist_params->distance_postfix_bits = npostfix; in BrotliInitDistanceParams()
37 npostfix, ndirect, BROTLI_MAX_DISTANCE_BITS); in BrotliInitDistanceParams()
38 max_distance = ndirect + (1U << (BROTLI_MAX_DISTANCE_BITS + npostfix + 2)) - in BrotliInitDistanceParams()
39 (1U << (npostfix + 2)); in BrotliInitDistanceParams()
43 uint32_t postfix = 1U << npostfix; in BrotliInitDistanceParams()
45 npostfix, ndirect, BROTLI_LARGE_MAX_DISTANCE_BITS); in BrotliInitDistanceParams()
49 if (ndirect < bound[npostfix]) { in BrotliInitDistanceParams()
50 max_distance = BROTLI_MAX_ALLOWED_DISTANCE - (bound[npostfix] - ndirect); in BrotliInitDistanceParams()
51 } else if (ndirect >= bound[npostfix] + postfix) { in BrotliInitDistanceParams()
52 max_distance = (3U << 29) - 4 + (ndirect - bound[npostfix]); in BrotliInitDistanceParams()
150 uint32_t npostfix; in BrotliBuildMetaBlock() local
157 for (npostfix = 0; npostfix <= BROTLI_MAX_NPOSTFIX; npostfix++) { in BrotliBuildMetaBlock()
159 uint32_t ndirect = ndirect_msb << npostfix; in BrotliBuildMetaBlock()
162 BrotliInitDistanceParams(&new_params, npostfix, ndirect); in BrotliBuildMetaBlock()
163 if (npostfix == orig_params.dist.distance_postfix_bits && in BrotliBuildMetaBlock()