Searched refs:npostfix (Results 1 – 3 of 3) sorted by relevance
29 uint32_t npostfix, uint32_t ndirect) { in BrotliInitDistanceParams() argument33 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()[all …]
99 uint32_t npostfix, uint32_t ndirect);
1940 static uint32_t BrotliMaxDistanceSymbol(uint32_t ndirect, uint32_t npostfix) { in BrotliMaxDistanceSymbol() argument1943 uint32_t postfix = 1U << npostfix; in BrotliMaxDistanceSymbol()1944 if (ndirect < bound[npostfix]) { in BrotliMaxDistanceSymbol()1945 return ndirect + diff[npostfix] + postfix; in BrotliMaxDistanceSymbol()1946 } else if (ndirect > bound[npostfix] + postfix) { in BrotliMaxDistanceSymbol()1947 return ndirect + diff[npostfix]; in BrotliMaxDistanceSymbol()1949 return bound[npostfix] + diff[npostfix] + postfix; in BrotliMaxDistanceSymbol()