• Home
  • Raw
  • Download

Lines Matching refs:n_bits

64     BrotliBitReader* const br, uint32_t n_bits, uint32_t* val);
108 BrotliBitReader* const br, uint32_t n_bits) { in BrotliFillBitWindow() argument
110 if (!BROTLI_ALIGNED_READ && BROTLI_IS_CONSTANT(n_bits) && (n_bits <= 8)) { in BrotliFillBitWindow()
119 !BROTLI_ALIGNED_READ && BROTLI_IS_CONSTANT(n_bits) && (n_bits <= 16)) { in BrotliFillBitWindow()
137 if (!BROTLI_ALIGNED_READ && BROTLI_IS_CONSTANT(n_bits) && (n_bits <= 8)) { in BrotliFillBitWindow()
199 BrotliBitReader* const br, uint32_t n_bits) { in BrotliGetBits() argument
200 BrotliFillBitWindow(br, n_bits); in BrotliGetBits()
201 return (uint32_t)BrotliGetBitsUnmasked(br) & BitMask(n_bits); in BrotliGetBits()
207 BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) { in BrotliSafeGetBits() argument
208 while (BrotliGetAvailableBits(br) < n_bits) { in BrotliSafeGetBits()
213 *val = (uint32_t)BrotliGetBitsUnmasked(br) & BitMask(n_bits); in BrotliSafeGetBits()
219 BrotliBitReader* const br, uint32_t n_bits) { in BrotliDropBits() argument
220 br->bit_pos_ += n_bits; in BrotliDropBits()
239 BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) { in BrotliTakeBits() argument
240 *val = (uint32_t)BrotliGetBitsUnmasked(br) & BitMask(n_bits); in BrotliTakeBits()
242 (int)br->avail_in, (int)br->bit_pos_, (int)n_bits, (int)*val)); in BrotliTakeBits()
243 BrotliDropBits(br, n_bits); in BrotliTakeBits()
250 BrotliBitReader* const br, uint32_t n_bits) { in BrotliReadBits24() argument
251 BROTLI_DCHECK(n_bits <= 24); in BrotliReadBits24()
252 if (BROTLI_64_BITS || (n_bits <= 16)) { in BrotliReadBits24()
254 BrotliFillBitWindow(br, n_bits); in BrotliReadBits24()
255 BrotliTakeBits(br, n_bits, &val); in BrotliReadBits24()
263 BrotliTakeBits(br, n_bits - 16, &high_val); in BrotliReadBits24()
270 BrotliBitReader* const br, uint32_t n_bits) { in BrotliReadBits32() argument
271 BROTLI_DCHECK(n_bits <= 32); in BrotliReadBits32()
272 if (BROTLI_64_BITS || (n_bits <= 16)) { in BrotliReadBits32()
274 BrotliFillBitWindow(br, n_bits); in BrotliReadBits32()
275 BrotliTakeBits(br, n_bits, &val); in BrotliReadBits32()
283 BrotliTakeBits(br, n_bits - 16, &high_val); in BrotliReadBits32()
292 BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) { in BrotliSafeReadBits() argument
293 BROTLI_DCHECK(n_bits <= 24); in BrotliSafeReadBits()
294 while (BrotliGetAvailableBits(br) < n_bits) { in BrotliSafeReadBits()
299 BrotliTakeBits(br, n_bits, val); in BrotliSafeReadBits()
305 BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) { in BrotliSafeReadBits32() argument
306 BROTLI_DCHECK(n_bits <= 32); in BrotliSafeReadBits32()
307 if (BROTLI_64_BITS || (n_bits <= 24)) { in BrotliSafeReadBits32()
308 while (BrotliGetAvailableBits(br) < n_bits) { in BrotliSafeReadBits32()
313 BrotliTakeBits(br, n_bits, val); in BrotliSafeReadBits32()
316 return BrotliSafeReadBits32Slow(br, n_bits, val); in BrotliSafeReadBits32()