| /freebsd/contrib/llvm-project/libc/src/__support/CPP/ |
| H A D | bit.h | 124 countl_zero(T value) { in ADD_SPECIALIZATION() 130 countl_zero(T value) { 146 ADD_SPECIALIZATION(countl_zero, unsigned short, __builtin_clzs) 148 ADD_SPECIALIZATION(countl_zero, unsigned int, __builtin_clz) 149 ADD_SPECIALIZATION(countl_zero, unsigned long, __builtin_clzl) 150 ADD_SPECIALIZATION(countl_zero, unsigned long long, __builtin_clzll) 165 return cpp::countl_zero<T>(static_cast<T>(~value)); in countl_one() 188 return cpp::numeric_limits<T>::digits - cpp::countl_zero(value); in bit_width()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/ |
| H A D | PPCMCTargetDesc.h | 82 MB = llvm::countl_zero(Val); in isRunOfOnes() 84 ME = llvm::countl_zero((Val - 1) ^ Val); in isRunOfOnes() 90 ME = llvm::countl_zero(Val) - 1; in isRunOfOnes() 92 MB = llvm::countl_zero((Val - 1) ^ Val) + 1; in isRunOfOnes() 106 MB = llvm::countl_zero(Val); in isRunOfOnes64() 108 ME = llvm::countl_zero((Val - 1) ^ Val); in isRunOfOnes64() 114 ME = llvm::countl_zero(Val) - 1; in isRunOfOnes64() 116 MB = llvm::countl_zero((Val - 1) ^ Val) + 1; in isRunOfOnes64()
|
| /freebsd/contrib/llvm-project/libc/src/__support/FPUtil/generic/ |
| H A D | sqrt.h | 44 cpp::countl_zero(mantissa) - 60 hi_bits ? (cpp::countl_zero(hi_bits) - 15) 61 : (cpp::countl_zero(static_cast<uint64_t>(mantissa)) + 49);
|
| H A D | sqrt_80_bit_long_double.h | 27 static_cast<size_t>(cpp::countl_zero(static_cast<uint64_t>(mantissa))) - in normalize()
|
| H A D | FMod.h | 242 lead_zeros_m_y = cpp::countl_zero(m_y); in eval_internal()
|
| /freebsd/contrib/llvm-project/libcxx/include/__bit/ |
| H A D | countl.h | 62 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr int countl_zero(_Tp __t) noexcept { in countl_zero() function 68 …return __t != numeric_limits<_Tp>::max() ? std::countl_zero(static_cast<_Tp>(~__t)) : numeric_limi… in countl_one()
|
| /freebsd/contrib/llvm-project/libc/src/__support/fixed_point/ |
| H A D | sqrt.h | 190 int leading_zeros = cpp::countl_zero(x_bit); 224 int leading_zeros = cpp::countl_zero(x); 251 int leading_zeros = cpp::countl_zero(x);
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | ScaledNumber.cpp | 47 unsigned LeadingZeros = llvm::countl_zero(Upper); in multiply64() 65 if (int Zeros = llvm::countl_zero(Dividend64)) { in divide32() 97 if (int Zeros = llvm::countl_zero(Dividend)) { in divide64()
|
| H A D | KnownBits.cpp | 106 unsigned NumBits = MaxVal.trunc(BitWidth - 1).countl_zero(); in computeForAddSub() 109 KnownOut.Zero.setHighBits(MaxVal.countl_zero()); in computeForAddSub() 134 unsigned NumBits = MaxVal.trunc(BitWidth - 1).countl_zero(); in computeForAddSub() 823 unsigned LeadZ = HasOverflow ? 0 : UMaxResult.countl_zero(); in mul()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | bit.h | 203 template <typename T> [[nodiscard]] int countl_zero(T Val) { in countl_zero() function 250 return llvm::countl_zero<T>(~Value); in countl_one() 273 return std::numeric_limits<T>::digits - llvm::countl_zero(Value); in bit_width()
|
| H A D | APInt.h | 1512 unsigned getActiveBits() const { return BitWidth - countl_zero(); } in getActiveBits() 1598 unsigned countl_zero() const { in countl_zero() function 1601 return llvm::countl_zero(U.VAL) - unusedBits; in countl_zero() 1606 unsigned countLeadingZeros() const { return countl_zero(); } in countLeadingZeros() 1629 return isNegative() ? countl_one() : countl_zero(); in getNumSignBits()
|
| H A D | SmallBitVector.h | 245 return NumBaseBits - llvm::countl_zero(Bits) - 1; in find_last() 319 return NumBaseBits - llvm::countl_zero(Bits) - 1; in find_prev()
|
| /freebsd/contrib/llvm-project/libcxx/modules/std/ |
| H A D | bit.cppm | |
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSimplifyDemanded.cpp | 197 unsigned NLZ = DemandedMask.countl_zero(); in SimplifyDemandedUseBits() 434 C->ule(DemandedMask.countl_zero())) { in SimplifyDemandedUseBits() 534 unsigned NLZ = DemandedMask.countl_zero(); in SimplifyDemandedUseBits() 577 unsigned NLZ = DemandedMask.countl_zero(); in SimplifyDemandedUseBits() 721 if (unsigned CTLZ = DemandedMask.countl_zero()) { in SimplifyDemandedUseBits() 755 if (DemandedMask.countl_zero() >= ShiftAmt) { in SimplifyDemandedUseBits() 835 bool ShiftedInBitsDemanded = DemandedMask.countl_zero() < ShiftAmt; in SimplifyDemandedUseBits() 926 unsigned NLZ = DemandedMask.countl_zero(); in SimplifyDemandedUseBits() 1227 unsigned NLZ = DemandedMask.countl_zero(); in SimplifyMultipleUseDemandedBits() 1247 unsigned NLZ = DemandedMask.countl_zero(); in SimplifyMultipleUseDemandedBits()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | MathExtras.h | 341 return 31 - llvm::countl_zero(Value); in Log2_32() 347 return 63 - llvm::countl_zero(Value); in Log2_64() 354 return 32 - llvm::countl_zero(Value - 1); in Log2_32_Ceil() 360 return 64 - llvm::countl_zero(Value - 1); in Log2_64_Ceil()
|
| H A D | KnownBits.h | 273 unsigned countMaxLeadingZeros() const { return One.countl_zero(); } in countMaxLeadingZeros() 276 unsigned countMaxLeadingOnes() const { return Zero.countl_zero(); } in countMaxLeadingOnes()
|
| H A D | ScaledNumber.h | 311 int32_t ShiftL = std::min<int32_t>(llvm::countl_zero(LDigits), ScaleDiff); in matchScales() 432 static int countLeadingZeros32(uint32_t N) { return llvm::countl_zero(N); } in countLeadingZeros32() 433 static int countLeadingZeros64(uint64_t N) { return llvm::countl_zero(N); } in countLeadingZeros64()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 1660 unsigned EqualLeadingBits = (Min ^ Max).countl_zero(); in shl() 1678 if (OtherMax.ugt(Max.countl_zero())) in shl() 2010 APInt(getBitWidth(), (getUpper() - 1).countl_zero()), in ctlz() 2011 APInt(getBitWidth(), (getLower() + 1).countl_zero() + 1)); in ctlz() 2015 APInt(getBitWidth(), getLower().countl_zero() + 1)); in ctlz() 2023 return getNonEmpty(APInt(getBitWidth(), getUnsignedMax().countl_zero()), in ctlz() 2024 APInt(getBitWidth(), getUnsignedMin().countl_zero()) + 1); in ctlz() 2040 unsigned LCPLength = (Lower ^ (Upper - 1)).countl_zero(); in getUnsignedCountTrailingZerosRange() 2106 unsigned LCPLength = (Lower ^ Max).countl_zero(); in getUnsignedPopCountRange()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | Integral.h | 184 return llvm::countl_zero<ReprT>(V); 186 return llvm::countl_zero<typename AsUnsigned::ReprT>(
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | BDCE.cpp | 122 if (Demanded.countl_zero() >= (DestBitSize - SrcBitSize)) { in bitTrackingDCE()
|
| /freebsd/contrib/llvm-project/libcxx/include/ |
| H A D | bit | 43 constexpr int countl_zero(T x) noexcept; // C++20
|
| /freebsd/contrib/llvm-project/libc/src/__support/ |
| H A D | big_int.h | 327 DECLARE_COUNTBIT(countl_zero, N - i - 1) // iterating backward 1010 int cur_bit = multiword::countl_zero(subtractor.val) - 1011 multiword::countl_zero(remainder.val); 1245 countl_zero(const T &value) { 1246 return multiword::countl_zero(value.val); 1267 return cpp::numeric_limits<T>::digits - cpp::countl_zero(value);
|
| H A D | str_to_float.h | 111 uint32_t clz = static_cast<uint32_t>(cpp::countl_zero<StorageType>(mantissa)); 228 int32_t clz = static_cast<int32_t>(cpp::countl_zero(mantissa)) - 783 uint32_t amount_to_shift_left = cpp::countl_zero<StorageType>(mantissa); in binary_exp_to_float()
|
| /freebsd/contrib/llvm-project/libc/src/__support/FPUtil/ |
| H A D | Hypot.h | 31 shift_length = (sizeof(mant) * 8) - 1 - cpp::countl_zero(mant); in find_leading_one()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/ |
| H A D | AArch64AddressingModes.h | 300 int len = 31 - llvm::countl_zero((N << 6) | (~imms & 0x3f)); in decodeLogicalImmediate() 329 int len = 31 - llvm::countl_zero((N << 6) | (~imms & 0x3f)); in isValidDecodeLogicalImmediate()
|