Lines Matching refs:width
60 int CountLeadingZeros(uint64_t value, int width) {
61 VIXL_ASSERT((width == 32) || (width == 64));
63 uint64_t bit_test = UINT64_C(1) << (width - 1);
64 while ((count < width) && ((bit_test & value) == 0)) {
72 int CountLeadingSignBits(int64_t value, int width) {
73 VIXL_ASSERT((width == 32) || (width == 64));
75 return CountLeadingZeros(value, width) - 1;
77 return CountLeadingZeros(~value, width) - 1;
82 int CountTrailingZeros(uint64_t value, int width) {
83 VIXL_ASSERT((width == 32) || (width == 64));
85 while ((count < width) && (((value >> count) & 1) == 0)) {
92 int CountSetBits(uint64_t value, int width) {
95 VIXL_ASSERT((width == 32) || (width == 64));
98 value &= (UINT64_C(0xffffffffffffffff) >> (64-width));