Lines Matching refs:n_bits

107     BrotliBitReader* const br, uint32_t n_bits) {  in BrotliFillBitWindow()  argument
109 if (!BROTLI_ALIGNED_READ && BROTLI_IS_CONSTANT(n_bits) && (n_bits <= 8)) { in BrotliFillBitWindow()
118 !BROTLI_ALIGNED_READ && BROTLI_IS_CONSTANT(n_bits) && (n_bits <= 16)) { in BrotliFillBitWindow()
136 if (!BROTLI_ALIGNED_READ && BROTLI_IS_CONSTANT(n_bits) && (n_bits <= 8)) { in BrotliFillBitWindow()
198 BrotliBitReader* const br, uint32_t n_bits) { in BrotliGetBits() argument
199 BrotliFillBitWindow(br, n_bits); in BrotliGetBits()
200 return (uint32_t)BrotliGetBitsUnmasked(br) & BitMask(n_bits); in BrotliGetBits()
206 BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) { in BrotliSafeGetBits() argument
207 while (BrotliGetAvailableBits(br) < n_bits) { in BrotliSafeGetBits()
212 *val = (uint32_t)BrotliGetBitsUnmasked(br) & BitMask(n_bits); in BrotliSafeGetBits()
218 BrotliBitReader* const br, uint32_t n_bits) { in BrotliDropBits() argument
219 br->bit_pos_ += n_bits; in BrotliDropBits()
238 BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) { in BrotliTakeBits() argument
239 *val = (uint32_t)BrotliGetBitsUnmasked(br) & BitMask(n_bits); in BrotliTakeBits()
241 (int)br->avail_in, (int)br->bit_pos_, (int)n_bits, (int)*val)); in BrotliTakeBits()
242 BrotliDropBits(br, n_bits); in BrotliTakeBits()
248 BrotliBitReader* const br, uint32_t n_bits) { in BrotliReadBits() argument
249 if (BROTLI_64_BITS || (n_bits <= 16)) { in BrotliReadBits()
251 BrotliFillBitWindow(br, n_bits); in BrotliReadBits()
252 BrotliTakeBits(br, n_bits, &val); in BrotliReadBits()
260 BrotliTakeBits(br, n_bits - 16, &high_val); in BrotliReadBits()
268 BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) { in BrotliSafeReadBits() argument
269 while (BrotliGetAvailableBits(br) < n_bits) { in BrotliSafeReadBits()
274 BrotliTakeBits(br, n_bits, val); in BrotliSafeReadBits()