Home
last modified time | relevance | path

Searched refs:popcount (Results 1 – 25 of 97) sorted by relevance

1234

/freebsd/contrib/ncurses/progs/
H A Dtput.c247 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 Dtic.c2078 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 DResourceManager.cpp68 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 Dt_popcount.c151 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 DInstrBuilder.cpp106 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 DKnownBits.h51 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 DMathExtras.h310 MaskLen = llvm::popcount(Value); in isShiftedMask_32()
323 MaskLen = llvm::popcount(Value); in isShiftedMask_64()
/freebsd/contrib/llvm-project/libcxx/include/
H A Dbit51 constexpr int popcount(T x) noexcept; // C++20
76 # include <__bit/popcount.h>
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonShuffler.h60 return (llvm::popcount(A.getUnits()) < llvm::popcount(B.getUnits())); in lessUnits()
H A DHexagonShuffler.cpp51 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 Dpopcount.h44 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr int popcount(_Tp __t) noexcept { in popcount() function
/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Dbit.cppm
/freebsd/contrib/ncurses/ncurses/tinfo/
H A Dlib_tparm.c121 #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 DLaneBitmask.h76 unsigned getNumLanes() const { return llvm::popcount(Mask); } in getNumLanes()
/freebsd/contrib/llvm-project/libcxx/include/__stop_token/
H A Datomic_unique_lock.h13 #include <__bit/popcount.h>
/freebsd/contrib/llvm-project/lldb/source/Breakpoint/
H A DWatchpointAlgorithms.cpp65 if (input <= 1 || llvm::popcount(input) == 1) in bit_ceil()
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DSanitizers.cpp64 total += llvm::popcount(Val); in countPopulation()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCSchedule.cpp144 double Temp = llvm::popcount(I->getUnits()) * 1.0 / I->getCycles(); in getReciprocalThroughput()
/freebsd/contrib/llvm-project/llvm/include/llvm/MCA/HardwareUnits/
H A DResourceManager.h250 return isAResourceGroup() ? 1U : llvm::popcount(ResourceSizeMask); in getNumUnits()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DGlobalsStream.cpp159 NumBuckets += llvm::popcount(B); in readGSIHashBuckets()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVMatInt.cpp327 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 DSubtargetFeature.h93 Count += llvm::popcount(B); in any()
/freebsd/contrib/llvm-project/llvm/lib/MCA/Stages/
H A DExecuteStage.cpp277 SmallVector<unsigned, 4> BufferIDs(llvm::popcount(UsedBuffers), 0); in notifyReservedOrReleasedBuffers()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUImageIntrinsicOptimizer.cpp206 unsigned NumElts = popcount(DMaskVal); in optimizeSection()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryProfileInfo.cpp132 const unsigned NumAllocTypes = llvm::popcount(AllocTypes); in hasSingleAllocType()

1234