Searched refs:GetNumBitsSet (Results 1 – 7 of 7) sorted by relevance
/external/perfetto/src/trace_processor/containers/ |
D | bit_vector_unittest.cc | 133 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 …]
|
D | bit_vector.h | 75 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 …]
|
D | bit_vector.cc | 58 PERFETTO_DCHECK(o.size() <= GetNumBitsSet()); in UpdateSetBits() 69 PERFETTO_DCHECK(o.GetNumBitsSet() == GetNumBitsSet()); in UpdateSetBits()
|
D | bit_vector_iterators.cc | 74 set_bit_count_ = bv->GetNumBitsSet(); in SetBitsIterator()
|
D | bit_vector_benchmark.cc | 145 uint32_t set_bit_count = bv.GetNumBitsSet(); in BM_BitVectorIndexOfNthSet() 184 benchmark::DoNotOptimize(res &= bv.GetNumBitsSet()); in BM_BitVectorGetNumBitsSet()
|
D | row_map.h | 247 return bit_vector_.GetNumBitsSet(); in size() 298 ? base::make_optional(bit_vector_.GetNumBitsSet(row)) in IndexOf()
|
D | row_map.cc | 78 PERFETTO_DCHECK(selector_end <= bv.GetNumBitsSet()); in SelectBvWithRange()
|