Searched refs:__libcpp_clz (Results 1 – 4 of 4) sorted by relevance
28 int __libcpp_clz(unsigned __x) _NOEXCEPT { return __builtin_clz(__x); } in __libcpp_clz() function31 int __libcpp_clz(unsigned long __x) _NOEXCEPT { return __builtin_clzl(__x); } in __libcpp_clz() function34 int __libcpp_clz(unsigned long long __x) _NOEXCEPT { return __builtin_clzll(__x); } in __libcpp_clz() function38 int __libcpp_clz(__uint128_t __x) _NOEXCEPT { in __libcpp_clz() function63 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()
131 /// Instead of using IntegerLogBase2 it uses __libcpp_clz. Since that137 auto __t = (32 - std::__libcpp_clz(static_cast<type>(__v | 1))) * 1233 >> 12;158 /// Instead of using IntegerLogBase2 it uses __libcpp_clz. Since that163 auto __t = (64 - std::__libcpp_clz(static_cast<type>(__v | 1))) * 1233 >> 12;183 /// Instead of using IntegerLogBase2 it uses __libcpp_clz. Since that190 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 …]
133 return __n < 2 ? __n : (size_t(1) << (numeric_limits<size_t>::digits - __libcpp_clz(__n-1)));
616 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>(__…