Home
last modified time | relevance | path

Searched refs:__libcpp_clz (Results 1 – 4 of 4) sorted by relevance

/openbsd-src/gnu/llvm/libcxx/include/__bit/
H A Dcountl.h28 int __libcpp_clz(unsigned __x) _NOEXCEPT { return __builtin_clz(__x); } in __libcpp_clz() function
31 int __libcpp_clz(unsigned long __x) _NOEXCEPT { return __builtin_clzl(__x); } in __libcpp_clz() function
34 int __libcpp_clz(unsigned long long __x) _NOEXCEPT { return __builtin_clzll(__x); } in __libcpp_clz() function
38 int __libcpp_clz(__uint128_t __x) _NOEXCEPT { in __libcpp_clz() function
63 return std::__libcpp_clz(static_cast<unsigned int>(__t)) in __countl_zero()
66 return std::__libcpp_clz(static_cast<unsigned long>(__t)) in __countl_zero()
69 return std::__libcpp_clz(static_cast<unsigned long long>(__t)) in __countl_zero()
/openbsd-src/gnu/llvm/libcxx/include/
H A Dcharconv131 /// Instead of using IntegerLogBase2 it uses __libcpp_clz. Since that
137 auto __t = (32 - std::__libcpp_clz(static_cast<type>(__v | 1))) * 1233 >> 12;
158 /// Instead of using IntegerLogBase2 it uses __libcpp_clz. Since that
163 auto __t = (64 - std::__libcpp_clz(static_cast<type>(__v | 1))) * 1233 >> 12;
183 /// Instead of using IntegerLogBase2 it uses __libcpp_clz. Since that
190 auto __t = (128 - std::__libcpp_clz(static_cast<uint64_t>(__v >> 64))) * 1233 >> 12;
368 // that __libcpp_clz doesn't work for 0.)
369 return numeric_limits<_Tp>::digits - std::__libcpp_clz(__value | 1);
403 // that __libcpp_clz doesn't work for 0.)
404 return ((numeric_limits<_Tp>::digits - std::__libcpp_clz(__value | 1)) + 2) / 3;
[all …]
H A D__hash_table133 return __n < 2 ? __n : (size_t(1) << (numeric_limits<size_t>::digits - __libcpp_clz(__n-1)));
/openbsd-src/gnu/llvm/libcxx/include/__algorithm/
H A Dsort.h616 return sizeof(unsigned) * CHAR_BIT - 1 - __libcpp_clz(static_cast<unsigned>(__n));
618 return sizeof(unsigned long) * CHAR_BIT - 1 - __libcpp_clz(static_cast<unsigned long>(__n));
620 …return sizeof(unsigned long long) * CHAR_BIT - 1 - __libcpp_clz(static_cast<unsigned long long>(__…