Lines Matching refs:BITS
37 #if (BITS > 32)
39 #elif (BITS > 16)
41 #elif (BITS > 8)
56 // makes sure br->value_ has at least BITS bits worth of data
59 // Read 'BITS' bits at a time if possible.
62 bit_t bits;
83 br->buf_ += BITS >> 3;
85 #if (BITS > 32)
86 bits = BSwap64(in_bits);
87 bits >>= 64 - BITS;
88 #elif (BITS >= 24)
89 bits = BSwap32(in_bits);
90 bits >>= (32 - BITS);
91 #elif (BITS == 16)
92 bits = BSwap16(in_bits);
93 #else // BITS == 8
94 bits = (bit_t)in_bits;
95 #endif // BITS > 32
97 bits = (bit_t)in_bits;
98 if (BITS != 8 * sizeof(bit_t)) bits >>= (8 * sizeof(bit_t) - BITS);
100 br->value_ = bits | (br->value_ << BITS);
101 br->bits_ += BITS;