Lines Matching defs:width
75 int CountLeadingZeros(uint64_t value, int width) {
76 DCHECK(base::bits::IsPowerOfTwo(width) && (width <= 64));
78 return width;
80 return base::bits::CountLeadingZeros64(value << (64 - width));
83 int CountLeadingSignBits(int64_t value, int width) {
84 DCHECK(base::bits::IsPowerOfTwo(width) && (width <= 64));
86 return CountLeadingZeros(value, width) - 1;
88 return CountLeadingZeros(~value, width) - 1;
92 int CountSetBits(uint64_t value, int width) {
93 DCHECK((width == 32) || (width == 64));
94 if (width == 64) {