Home
last modified time | relevance | path

Searched refs:GetNumBitsSet (Results 1 – 7 of 7) sorted by relevance

/external/perfetto/src/trace_processor/containers/
Dbit_vector_unittest.cc133 TEST(BitVectorUnittest, GetNumBitsSet) { in TEST() argument
142 ASSERT_EQ(bv.GetNumBitsSet(), 6u); in TEST()
144 ASSERT_EQ(bv.GetNumBitsSet(0), 0u); in TEST()
145 ASSERT_EQ(bv.GetNumBitsSet(1), 1u); in TEST()
146 ASSERT_EQ(bv.GetNumBitsSet(2), 2u); in TEST()
147 ASSERT_EQ(bv.GetNumBitsSet(3), 2u); in TEST()
148 ASSERT_EQ(bv.GetNumBitsSet(511), 2u); in TEST()
149 ASSERT_EQ(bv.GetNumBitsSet(512), 3u); in TEST()
150 ASSERT_EQ(bv.GetNumBitsSet(1023), 4u); in TEST()
151 ASSERT_EQ(bv.GetNumBitsSet(1024), 4u); in TEST()
[all …]
Dbit_vector.h75 uint32_t GetNumBitsSet() const { return GetNumBitsSet(size()); } in GetNumBitsSet() function
79 uint32_t GetNumBitsSet(uint32_t end) const { in GetNumBitsSet() function
92 return counts_[idx] + blocks_[idx].GetNumBitsSet(addr.block_offset); in GetNumBitsSet()
98 PERFETTO_DCHECK(n < GetNumBitsSet()); in IndexOfNthSet()
167 uint32_t t = GetNumBitsSet(); in AppendTrue()
183 uint32_t t = GetNumBitsSet(); in AppendFalse()
237 uint32_t set_count = GetNumBitsSet() + count_in_block_after_end;
251 uint32_t count = GetNumBitsSet();
292 bv.counts_.emplace_back(bv.GetNumBitsSet()); in Range()
434 uint32_t GetNumBitsSet() const { in GetNumBitsSet() function
[all …]
Dbit_vector.cc58 PERFETTO_DCHECK(o.size() <= GetNumBitsSet()); in UpdateSetBits()
69 PERFETTO_DCHECK(o.GetNumBitsSet() == GetNumBitsSet()); in UpdateSetBits()
Dbit_vector_iterators.cc74 set_bit_count_ = bv->GetNumBitsSet(); in SetBitsIterator()
Dbit_vector_benchmark.cc145 uint32_t set_bit_count = bv.GetNumBitsSet(); in BM_BitVectorIndexOfNthSet()
184 benchmark::DoNotOptimize(res &= bv.GetNumBitsSet()); in BM_BitVectorGetNumBitsSet()
Drow_map.h247 return bit_vector_.GetNumBitsSet(); in size()
298 ? base::make_optional(bit_vector_.GetNumBitsSet(row)) in IndexOf()
Drow_map.cc78 PERFETTO_DCHECK(selector_end <= bv.GetNumBitsSet()); in SelectBvWithRange()