Lines Matching refs:BITS
29 // However, since range_ is only 8bit, we only need an active window of 8 bits
30 // for value_. Left bits (MSB) gets zeroed and shifted away when value_ falls
31 // below 128, range_ is updated, and fresh bits read from the bitstream are
32 // brought in as LSB. To avoid reading the fresh bits one by one (slow), we
33 // cache BITS of them ahead. The total of (BITS + 8) bits must fit into a
34 // natural register (with type bit_t). To fetch BITS bits from bitstream we
37 // BITS can be any multiple of 8 from 8 to 56 (inclusive).
41 #define BITS 24
43 #define BITS 56
45 #define BITS 24
47 #define BITS 24
49 #define BITS 24 // TODO(skal): test aarch64 and find the proper BITS value.
54 // bit_t = natural register type for storing 'value_' (which is BITS+8 bits)
55 // range_t = register for 'range_' (which is 8bits only)
57 #if (BITS > 24)
73 int bits_; // number of valid bits left
88 // return the next value made of 'num_bits' bits
107 // maximum number of bits (inclusive) the bit-reader can handle:
113 vp8l_val_t val_; // pre-fetched bits
130 // Reads the specified number of bits from read buffer.
136 // Return the prefetched bits, so they can be looked up.
141 // For jumping over a number of bits in the bit stream when accessed with
147 // Advances the read buffer by 4 bytes to make room for reading next 32 bits.