Home
last modified time | relevance | path

Searched refs:PopCount (Results 1 – 10 of 10) sorted by relevance

/external/marisa-trie/lib/marisa/grimoire/vector/
Dpop-count.h12 class PopCount {
14 explicit PopCount(UInt64 x) : value_() { in PopCount() function
55 return PopCount(x).lo64(); in count()
65 class PopCount {
67 explicit PopCount(UInt32 x) : value_() {
96 return PopCount(x).lo32();
Dbit-vector.cc211 skip = (UInt8)PopCount::count(static_cast<UInt64>(_mm_cvtsi128_si64(x)));
384 offset += PopCount::count(units_[i / 64] & ((1ULL << (i % 64)) - 1)); in rank1()
551 offset += PopCount::count(units_[(i / 32) - 1]); in rank1()
553 offset += PopCount::count(units_[i / 32] & ((1U << (i % 32)) - 1)); in rank1()
620 PopCount count(unit); in select0()
625 count = PopCount(unit); in select0()
711 PopCount count(unit); in select1()
716 count = PopCount(unit); in select1()
/external/openscreen/util/
Dyet_another_bit_vector.cc204 #define PopCount(bits) __builtin_popcountll(bits) in CountBitsSet() macro
206 const auto PopCount = [](uint64_t bits) -> int { in CountBitsSet() local
225 count = PopCount(bits_.as_array[first] & in CountBitsSet()
231 count = PopCount((*p) & in CountBitsSet()
234 count += PopCount(*p); in CountBitsSet()
236 count += PopCount((*p) & MakeBitmask(0, end - (last * kBitsPerInteger))); in CountBitsSet()
241 count = PopCount(bits_.as_integer & MakeBitmask(begin, end - begin)); in CountBitsSet()
/external/marisa-trie/tests/
Dvector-test.cc20 marisa::grimoire::vector::PopCount count(0); in TestPopCount()
32 marisa::grimoire::vector::PopCount count(0xFFFFFFFFFFFFFFFFULL); in TestPopCount()
44 marisa::grimoire::vector::PopCount count(0xFF7F3F1F0F070301ULL); in TestPopCount()
62 marisa::grimoire::vector::PopCount count(0);
70 marisa::grimoire::vector::PopCount count(0xFFFFFFFFU);
78 marisa::grimoire::vector::PopCount count(0xFF3F0F03U);
/external/llvm-project/llvm/lib/CodeGen/
DSplitKit.cpp580 unsigned PopCount = SubRegMask.getNumLanes(); in buildCopy() local
582 if (PopCount > BestCover) { in buildCopy()
583 BestCover = PopCount; in buildCopy()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DSplitKit.cpp577 unsigned PopCount = SubRegMask.getNumLanes(); in buildCopy() local
579 if (PopCount > BestCover) { in buildCopy()
580 BestCover = PopCount; in buildCopy()
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/
DIRTranslator.cpp1050 unsigned PopCount = countPopulation(B.Mask); in emitBitTestCase() local
1051 if (PopCount == 1) { in emitBitTestCase()
1059 } else if (PopCount == BB.Range) { in emitBitTestCase()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp2203 unsigned PopCount = countPopulation(B.Mask); in visitBitTestCase() local
2205 if (PopCount == 1) { in visitBitTestCase()
2212 } else if (PopCount == BB.Range) { in visitBitTestCase()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp2721 unsigned PopCount = countPopulation(B.Mask); in visitBitTestCase() local
2723 if (PopCount == 1) { in visitBitTestCase()
2730 } else if (PopCount == BB.Range) { in visitBitTestCase()
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp2695 unsigned PopCount = countPopulation(B.Mask); in visitBitTestCase() local
2697 if (PopCount == 1) { in visitBitTestCase()
2704 } else if (PopCount == BB.Range) { in visitBitTestCase()