| /freebsd/contrib/llvm-project/libcxx/modules/std/ |
| H A D | bit.cppm | |
| /freebsd/contrib/llvm-project/libcxx/include/__bit/ |
| H A D | countl.h | 67 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr int countl_one(_Tp __t) noexcept { in countl_one() function
|
| /freebsd/contrib/llvm-project/libc/src/__support/wchar/ |
| H A D | character_converter.cpp | 60 uint8_t num_ones = static_cast<uint8_t>(cpp::countl_one(utf8_byte)); in push()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | KnownBits.h | 241 unsigned countMinLeadingZeros() const { return Zero.countl_one(); } in countMinLeadingZeros() 244 unsigned countMinLeadingOnes() const { return One.countl_one(); } in countMinLeadingOnes()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/ |
| H A D | ARMUnwindOpAsm.cpp | 114 auto RangeLen = llvm::countl_one(Regs << (32 - RangeMSB)); in EmitVFPRegSave()
|
| /freebsd/contrib/llvm-project/libcxx/include/ |
| H A D | bit | 45 constexpr int countl_one(T x) noexcept; // C++20
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | APInt.h | 454 unsigned LO = countl_one(); in isNegatedPowerOf2() 1615 unsigned countl_one() const { in countl_one() function 1619 return llvm::countl_one(U.VAL << (APINT_BITS_PER_WORD - BitWidth)); in countl_one() 1624 unsigned countLeadingOnes() const { return countl_one(); } in countLeadingOnes() 1629 return isNegative() ? countl_one() : countl_zero(); in getNumSignBits()
|
| H A D | bit.h | 247 template <typename T> [[nodiscard]] int countl_one(T Value) { in countl_one() function
|
| H A D | SmallBitVector.h | 270 return NumBaseBits - llvm::countl_one(Bits) - 1; in find_last_unset()
|
| H A D | BitVector.h | 291 (CurrentWord + 1) * BITWORD_SIZE - llvm::countl_one(Copy) - 1; in find_last_unset_in()
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | KnownBits.cpp | 92 unsigned NumBits = MinVal.trunc(BitWidth - 1).countl_one(); in computeForAddSub() 97 KnownOut.One.setHighBits(MinVal.countl_one()); in computeForAddSub() 128 unsigned NumBits = MinVal.trunc(BitWidth - 1).countl_one(); in computeForAddSub() 178 unsigned N = (Zero | Val).countl_one(); in makeGE()
|
| H A D | APInt.cpp | 688 unsigned Count = llvm::countl_one(U.pVal[i] << shift); in countLeadingOnesSlowCase() 694 Count += llvm::countl_one(U.pVal[i]); in countLeadingOnesSlowCase() 2000 Overflow = ShAmt >= countl_one(); in sshl_ov()
|
| /freebsd/contrib/llvm-project/libc/src/__support/ |
| H A D | math_extras.h | 129 : cpp::countl_one(value) + 1; in first_leading_zero()
|
| H A D | big_int.h | 328 DECLARE_COUNTBIT(countl_one, N - i - 1) // iterating backward 1252 countl_one(T value) { 1253 return multiword::countl_one(value.val); 1364 : cpp::countl_one(value) + 1;
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/ |
| H A D | RISCVMatInt.cpp | 190 unsigned LeadingOnes = llvm::countl_one((uint64_t)Val); in extractRotateInfo() 198 unsigned LowerLeadingOnes = llvm::countl_one(Lo_32(Val)); in extractRotateInfo()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/VE/ |
| H A D | VE.h | 363 return llvm::countl_one(Val); // (m)1 in val2MImm()
|
| /freebsd/contrib/llvm-project/libc/src/__support/CPP/ |
| H A D | bit.h | 164 countl_one(T value) { in countl_one() function
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/GISel/ |
| H A D | PPCInstructionSelector.cpp | 295 unsigned LO = llvm::countl_one<uint64_t>(Imm); in selectI64ImmDirect() 319 unsigned FO = llvm::countl_one<uint64_t>(Imm << LZ); in selectI64ImmDirect()
|
| /freebsd/contrib/llvm-project/libcxx/include/__format/ |
| H A D | formatter_output.h | 158 std::size_t __bytes = std::countl_one(static_cast<unsigned char>(__value.__data[0])); in requires()
|
| H A D | unicode.h | 163 switch (std::countl_one(static_cast<unsigned char>(*__first_))) { in __consume()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/ |
| H A D | AArch64AddressingModes.h | 247 unsigned CLO = llvm::countl_one(Imm); in processLogicalImmediate()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 1669 if (isAllNegative() && OtherMax.ule(Min.countl_one())) { in shl() 2134 ConstantRange CR1 = ConstantRange(APInt(BitWidth, Lower.countl_one()), in ctpop()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSimplifyDemanded.cpp | 1095 CTZ >= C->getBitWidth() - C->countl_one()) in SimplifyDemandedUseBits()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | GISelValueTracking.cpp | 2046 return std::max(FirstAnswer, Mask.countl_one()); in computeNumSignBits()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCISelDAGToDAG.cpp | 1024 unsigned LO = llvm::countl_one<uint64_t>(Imm); in selectI64ImmDirect() 1052 unsigned FO = llvm::countl_one<uint64_t>(Imm << LZ); in selectI64ImmDirect() 1265 unsigned FO = llvm::countl_one<uint64_t>(LZ == 64 ? 0 : (Imm << LZ)); in selectI64ImmDirectPrefix()
|