Searched refs:first_set_bit (Results 1 – 4 of 4) sorted by relevance
120 unsigned long first_set_bit; // NOLINT(runtime/int) in CountLeadingZeros() local121 const unsigned char bit_set = _BitScanReverse(&first_set_bit, n); in CountLeadingZeros()124 return 31 ^ static_cast<int>(first_set_bit); in CountLeadingZeros()129 unsigned long first_set_bit; // NOLINT(runtime/int) in CountLeadingZeros() local132 _BitScanReverse64(&first_set_bit, static_cast<unsigned __int64>(n)); in CountLeadingZeros()136 const unsigned char bit_set = _BitScanReverse(&first_set_bit, n_hi); in CountLeadingZeros()139 return 31 ^ static_cast<int>(first_set_bit); in CountLeadingZeros()142 &first_set_bit, static_cast<unsigned long>(n)); // NOLINT(runtime/int) in CountLeadingZeros()146 return 63 ^ static_cast<int>(first_set_bit); in CountLeadingZeros()153 unsigned long first_set_bit; // NOLINT(runtime/int) in CountTrailingZeros() local[all …]
44 unsigned long first_set_bit;46 _BitScanReverse(&first_set_bit, n);47 return first_set_bit;
48 unsigned long first_set_bit;50 _BitScanReverse(&first_set_bit, n);51 return first_set_bit;
123 unsigned long first_set_bit; in BitsLog2Floor() local124 _BitScanReverse(&first_set_bit, n); in BitsLog2Floor()125 return first_set_bit; in BitsLog2Floor()