/freebsd/contrib/ncurses/progs/ |
H A D | tput.c | 247 int popcount; in tput_cmd() local 284 popcount = 0; in tput_cmd() 327 analyzed = _nc_tparm_analyze(NULL, s, p_is_s, &popcount); in tput_cmd() 344 analyzed = _nc_tparm_analyze(NULL, s, p_is_s, &popcount); in tput_cmd() 359 if (analyzed < popcount) { in tput_cmd() 360 analyzed = popcount; in tput_cmd()
|
H A D | tic.c | 2078 int popcount; in check_params() local 2079 int analyzed = _nc_tparm_analyze(NULL, value, p_is_s, &popcount); in check_params() 2080 if (analyzed < popcount) { in check_params() 2081 analyzed = popcount; in check_params() 3016 int popcount; in check_ANSI_cap() local 3017 int analyzed = _nc_tparm_analyze(NULL, value, p_is_s, &popcount); in check_ANSI_cap() 3018 if (analyzed < popcount) { in check_ANSI_cap() 3019 analyzed = popcount; in check_ANSI_cap()
|
/freebsd/contrib/llvm-project/llvm/lib/MCA/HardwareUnits/ |
H A D | ResourceManager.cpp | 68 BufferSize(Desc.BufferSize), IsAGroup(llvm::popcount(ResourceMask) > 1) { in ResourceState() 82 (unsigned)llvm::popcount(ReadyMask) >= NumUnits; in isReady() 296 unsigned NumAvailableUnits = llvm::popcount(RS.getReadyMask()); in checkAvailability() 328 unsigned NumUnits = llvm::popcount(Resources[Index]->getReadyMask()); in checkAvailability() 365 assert((llvm::popcount(R.first) > 1) && "Expected a group!"); in issueInstruction() 382 if (llvm::popcount(RR.first) == 1) in cycleEvent()
|
/freebsd/contrib/netbsd-tests/lib/libc/string/ |
H A D | t_popcount.c | 151 ATF_CHECK_EQ(r, popcount(i)); in ATF_TC_BODY() 153 ATF_CHECK_EQ(popcount(0xffffffff), 32); in ATF_TC_BODY()
|
/freebsd/contrib/llvm-project/llvm/lib/MCA/ |
H A D | InstrBuilder.cpp | 106 unsigned popcntA = llvm::popcount(A.first); in initializeUsedResources() 107 unsigned popcntB = llvm::popcount(B.first); in initializeUsedResources() 126 assert(llvm::popcount(A.first) > 1 && "Expected a group!"); in initializeUsedResources() 134 if (llvm::popcount(A.first) == 1) { in initializeUsedResources() 150 if (llvm::popcount(B.first) > 1) in initializeUsedResources() 174 if (llvm::popcount(RPC.first) > 1 && !RPC.second.isReserved()) { in initializeUsedResources() 177 uint64_t MaxResourceUnits = llvm::popcount(Mask); in initializeUsedResources() 178 if (RPC.second.NumUnits > (unsigned)llvm::popcount(Mask)) { in initializeUsedResources()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | KnownBits.h | 51 return Zero.popcount() + One.popcount() == getBitWidth(); in isConstant() 275 unsigned countMinPopulation() const { return One.popcount(); } in countMinPopulation() 279 return getBitWidth() - Zero.popcount(); in countMaxPopulation()
|
H A D | MathExtras.h | 310 MaskLen = llvm::popcount(Value); in isShiftedMask_32() 323 MaskLen = llvm::popcount(Value); in isShiftedMask_64()
|
/freebsd/contrib/llvm-project/libcxx/include/ |
H A D | bit | 51 constexpr int popcount(T x) noexcept; // C++20 76 # include <__bit/popcount.h>
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/ |
H A D | HexagonShuffler.h | 60 return (llvm::popcount(A.getUnits()) < llvm::popcount(B.getUnits())); in lessUnits()
|
H A D | HexagonShuffler.cpp | 51 HexagonBid(unsigned B) { Bid = B ? MAX / llvm::popcount(B) : 0; } 103 unsigned Ctpop = llvm::popcount(Units); in setWeight()
|
/freebsd/contrib/llvm-project/libcxx/include/__bit/ |
H A D | popcount.h | 44 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr int popcount(_Tp __t) noexcept { in popcount() function
|
/freebsd/contrib/llvm-project/libcxx/modules/std/ |
H A D | bit.cppm |
|
/freebsd/contrib/ncurses/ncurses/tinfo/ |
H A D | lib_tparm.c | 121 #define popcount _nc_popcount /* workaround for NetBSD 6.0 defect */ macro 467 _nc_tparm_analyze(TERMINAL *term, const char *string, char **p_is_s, int *popcount) in _nc_tparm_analyze() argument 489 *popcount = 0; in _nc_tparm_analyze() 529 if (lastpop > *popcount) in _nc_tparm_analyze() 530 *popcount = lastpop; in _nc_tparm_analyze()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/ |
H A D | LaneBitmask.h | 76 unsigned getNumLanes() const { return llvm::popcount(Mask); } in getNumLanes()
|
/freebsd/contrib/llvm-project/libcxx/include/__stop_token/ |
H A D | atomic_unique_lock.h | 13 #include <__bit/popcount.h>
|
/freebsd/contrib/llvm-project/lldb/source/Breakpoint/ |
H A D | WatchpointAlgorithms.cpp | 65 if (input <= 1 || llvm::popcount(input) == 1) in bit_ceil()
|
/freebsd/contrib/llvm-project/clang/lib/Basic/ |
H A D | Sanitizers.cpp | 64 total += llvm::popcount(Val); in countPopulation()
|
/freebsd/contrib/llvm-project/llvm/lib/MC/ |
H A D | MCSchedule.cpp | 144 double Temp = llvm::popcount(I->getUnits()) * 1.0 / I->getCycles(); in getReciprocalThroughput()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/MCA/HardwareUnits/ |
H A D | ResourceManager.h | 250 return isAResourceGroup() ? 1U : llvm::popcount(ResourceSizeMask); in getNumUnits()
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
H A D | GlobalsStream.cpp | 159 NumBuckets += llvm::popcount(B); in readGSIHashBuckets()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/ |
H A D | RISCVMatInt.cpp | 327 if (TmpSeq.size() + llvm::popcount(Hi) < Res.size()) { in generateInstSeq() 348 if (TmpSeq.size() + llvm::popcount(Hi) < Res.size()) { in generateInstSeq()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/TargetParser/ |
H A D | SubtargetFeature.h | 93 Count += llvm::popcount(B); in any()
|
/freebsd/contrib/llvm-project/llvm/lib/MCA/Stages/ |
H A D | ExecuteStage.cpp | 277 SmallVector<unsigned, 4> BufferIDs(llvm::popcount(UsedBuffers), 0); in notifyReservedOrReleasedBuffers()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUImageIntrinsicOptimizer.cpp | 206 unsigned NumElts = popcount(DMaskVal); in optimizeSection()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | MemoryProfileInfo.cpp | 132 const unsigned NumAllocTypes = llvm::popcount(AllocTypes); in hasSingleAllocType()
|