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
60 // Read 'BITS' bits at a time if possible.
63 bit_t bits;
82 br->buf_ += BITS >> 3;
84 #if (BITS > 32)
85 bits = BSwap64(in_bits);
86 bits >>= 64 - BITS;
87 #elif (BITS >= 24)
88 bits = BSwap32(in_bits);
89 bits >>= (32 - BITS);
90 #elif (BITS == 16)
91 bits = BSwap16(in_bits);
92 #else // BITS == 8
93 bits = (bit_t)in_bits;
94 #endif // BITS > 32
96 bits = (bit_t)in_bits;
97 if (BITS != 8 * sizeof(bit_t)) bits >>= (8 * sizeof(bit_t) - BITS);
99 br->value_ = bits | (br->value_ << BITS);
100 br->bits_ += BITS;