Home | History | Annotate | Download | only in utils

Lines Matching refs:BITS

38 #if   (BITS > 32)
40 #elif (BITS > 16)
42 #elif (BITS > 8)
57 // 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;
84 br->buf_ += BITS >> 3;
86 #if (BITS > 32)
87 bits = BSwap64(in_bits);
88 bits >>= 64 - BITS;
89 #elif (BITS >= 24)
90 bits = BSwap32(in_bits);
91 bits >>= (32 - BITS);
92 #elif (BITS == 16)
93 bits = BSwap16(in_bits);
94 #else // BITS == 8
95 bits = (bit_t)in_bits;
96 #endif // BITS > 32
98 bits = (bit_t)in_bits;
99 if (BITS != 8 * sizeof(bit_t)) bits >>= (8 * sizeof(bit_t) - BITS);
101 br->value_ = bits | (br->value_ << BITS);
102 br->bits_ += BITS;