Lines Matching refs:HUFFMAN_TABLE_BITS
39 #define HUFFMAN_TABLE_BITS 8U macro
355 if (BROTLI_HC_FAST_LOAD_BITS(table) > HUFFMAN_TABLE_BITS) { in DecodeSymbol()
356 uint32_t nbits = BROTLI_HC_FAST_LOAD_BITS(table) - HUFFMAN_TABLE_BITS; in DecodeSymbol()
357 BrotliDropBits(br, HUFFMAN_TABLE_BITS); in DecodeSymbol()
360 ((bits >> HUFFMAN_TABLE_BITS) & BitMask(nbits))); in DecodeSymbol()
389 if (BROTLI_HC_FAST_LOAD_BITS(table) <= HUFFMAN_TABLE_BITS) { in SafeDecodeSymbol()
398 if (available_bits <= HUFFMAN_TABLE_BITS) { in SafeDecodeSymbol()
403 val = (val & BitMask(BROTLI_HC_FAST_LOAD_BITS(table))) >> HUFFMAN_TABLE_BITS; in SafeDecodeSymbol()
404 available_bits -= HUFFMAN_TABLE_BITS; in SafeDecodeSymbol()
410 BrotliDropBits(br, HUFFMAN_TABLE_BITS + BROTLI_HC_FAST_LOAD_BITS(table)); in SafeDecodeSymbol()
435 BROTLI_HC_ADJUST_TABLE_INDEX(table, BrotliGetBits(br, HUFFMAN_TABLE_BITS)); in PreloadSymbol()
447 if (BROTLI_PREDICT_FALSE(*bits > HUFFMAN_TABLE_BITS)) { in ReadPreloadedSymbol()
450 uint32_t mask = BitMask((*bits - HUFFMAN_TABLE_BITS)); in ReadPreloadedSymbol()
452 BrotliDropBits(br, HUFFMAN_TABLE_BITS); in ReadPreloadedSymbol()
453 BROTLI_HC_ADJUST_TABLE_INDEX(ext, (val >> HUFFMAN_TABLE_BITS) & mask); in ReadPreloadedSymbol()
808 table, HUFFMAN_TABLE_BITS, h->symbols_lists_array, h->symbol); in ReadHuffmanCode()
857 table, HUFFMAN_TABLE_BITS, h->symbol_lists, h->code_length_histo); in ReadHuffmanCode()