Lines Matching defs:bits
1723 // A Unicode code-point can have upto 21 bits, and is encoded in UTF-8
1727 // 0 - 7 bits 0xxxxxxx
1728 // 8 - 11 bits 110xxxxx 10xxxxxx
1729 // 12 - 16 bits 1110xxxx 10xxxxxx 10xxxxxx
1730 // 17 - 21 bits 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
1744 // Chops off the n lowest bits from a bit pattern. Returns the n
1745 // lowest bits. As a side effect, the original bit pattern will be
1746 // shifted to the right by n bits.
1747 inline UInt32 ChopLowBits(UInt32* bits, int n) {
1748 const UInt32 low_bits = *bits & ((static_cast<UInt32>(1) << n) - 1);
1749 *bits >>= n;