Lines Matching defs:bits
169 template <typename T> T shift_right(const T& x, int bits) {
170 return x >> bits;
173 Sk4f shift_right(const Sk4f& x, int bits) {
174 return x * (1.0f / (1 << bits));
177 template <typename T> T shift_left(const T& x, int bits) {
178 return x << bits;
181 Sk4f shift_left(const Sk4f& x, int bits) {
182 return x * (1 << bits);
675 // If the value 00011010 has 3 leading 0s then it has 5 significant bits
676 // (the bits which are not leading zeros)
678 // This is making the assumption that the size of a byte is 8 bits