/external/perfetto/src/trace_processor/containers/ |
D | bit_vector_unittest.cc | 134 TEST(BitVectorUnittest, CountSetBits) { in TEST() argument 143 ASSERT_EQ(bv.CountSetBits(), 6u); in TEST() 145 ASSERT_EQ(bv.CountSetBits(0), 0u); in TEST() 146 ASSERT_EQ(bv.CountSetBits(1), 1u); in TEST() 147 ASSERT_EQ(bv.CountSetBits(2), 2u); in TEST() 148 ASSERT_EQ(bv.CountSetBits(3), 2u); in TEST() 149 ASSERT_EQ(bv.CountSetBits(511), 2u); in TEST() 150 ASSERT_EQ(bv.CountSetBits(512), 3u); in TEST() 151 ASSERT_EQ(bv.CountSetBits(1023), 4u); in TEST() 152 ASSERT_EQ(bv.CountSetBits(1024), 4u); in TEST() [all …]
|
D | bit_vector.cc | 130 uint32_t set_count = CountSetBits() + count_in_block_after_end; in Resize() 144 uint32_t count = CountSetBits(); in Resize() 193 if (update.CountSetBits() == 0 || CountSetBits() == 0) { in UpdateSetBits() 197 PERFETTO_DCHECK(update.size() <= CountSetBits()); in UpdateSetBits() 278 counts_[i + 1] = counts_[i] + ConstBlockFromIndex(i).CountSetBits(); in UpdateSetBits() 283 PERFETTO_DCHECK(update.CountSetBits() == CountSetBits()); in UpdateSetBits() 288 uint32_t total_set_bits = CountSetBits(); in IntersectRange()
|
D | bit_vector.h | 94 ConstBlock(&words_[Block::kWords * (i - 1)]).CountSetBits(); in Build() 163 uint32_t CountSetBits() const { return CountSetBits(size()); } in CountSetBits() function 167 uint32_t CountSetBits(uint32_t end) const { in CountSetBits() function 180 ConstBlockFromIndex(addr.block_idx).CountSetBits(addr.block_offset); in CountSetBits() 186 PERFETTO_DCHECK(n < CountSetBits()); in IndexOfNthSet() 266 uint32_t t = CountSetBits(); in AppendFalse() 302 bv.counts_.emplace_back(bv.CountSetBits()); in Range() 325 bv.counts_.emplace_back(bv.CountSetBits()); in Range() 545 uint32_t CountSetBits() const { in CountSetBits() function 550 uint32_t CountSetBits(uint32_t idx) const { in CountSetBits() function [all …]
|
D | nullable_vector.h | 76 return contains ? std::make_optional(data_[valid_.CountSetBits(idx)]) in Get() 103 uint32_t row = valid_.CountSetBits(idx); in Set()
|
D | bit_vector_benchmark.cc | 154 uint32_t set_bit_count = bv.CountSetBits(); in BM_BitVectorIndexOfNthSet() 195 benchmark::DoNotOptimize(res &= bv.CountSetBits()); in BM_BitVectorCountSetBits() 273 uint32_t set_bit_count = bv.CountSetBits(); in BM_BitVectorUpdateSetBits() 274 uint32_t picker_set_bit_count = picker.CountSetBits(); in BM_BitVectorUpdateSetBits()
|
D | row_map.cc | 71 PERFETTO_DCHECK(selector.end <= bv.CountSetBits()); in Select() 76 if (selector.start == 0 && selector.end == bv.CountSetBits()) { in Select() 115 if (bv.CountSetBits() / kIndexOfSetBitToSelectorRatio < selector.size()) { in Select()
|
D | row_map_algorithms.h | 54 std::vector<uint32_t> bv_conv(bv.CountSetBits()); in SelectBvWithIvByConvertToIv()
|
D | bit_vector_iterators.cc | 65 set_bit_count_ = bv->CountSetBits(); in SetBitsIterator()
|
D | row_map.h | 221 return bv->CountSetBits(); in size() 269 ? std::make_optional(bv->CountSetBits(index)) in RowOf()
|
/external/perfetto/src/trace_processor/db/ |
D | null_overlay.cc | 36 RowMap filtered_data_rm(0, null_bv_->CountSetBits()); in Filter() 45 uint32_t count_set_bits = null_bv_->CountSetBits(); in StableSort()
|
D | storage_unittest.cc | 63 ASSERT_EQ(bv.CountSetBits(), 5u); in TEST() 76 ASSERT_EQ(bv.CountSetBits(), 1020u); in TEST() 88 ASSERT_EQ(bv.CountSetBits(), 28u); in TEST()
|
/external/vixl/src/aarch64/ |
D | registers-aarch64.cc | 211 int number_of_unique_regs = CountSetBits(unique_regs); in AreAliased() 212 int number_of_unique_vregs = CountSetBits(unique_vregs); in AreAliased() 213 int number_of_unique_pregs = CountSetBits(unique_pregs); in AreAliased()
|
D | operands-aarch64.h | 236 return CountSetBits(list_); in GetCount()
|
/external/vixl/src/ |
D | compiler-intrinsics-vixl.h | 141 inline int CountSetBits(V value, int width = (sizeof(V) * 8)) {
|
D | utils-vixl.cc | 204 int BitCount(uint64_t value) { return CountSetBits(value); } in BitCount() 264 Int64 BitCount(Uint32 value) { return CountSetBits(value.Get()); } in BitCount()
|
/external/zstd/programs/ |
D | util.h | 305 DWORD CountSetBits(ULONG_PTR bitMask);
|
D | util.c | 1121 DWORD CountSetBits(ULONG_PTR bitMask) in CountSetBits() function 1187 numCores += CountSetBits(ptr->ProcessorMask); in UTIL_countCores()
|
/external/deqp-deps/SPIRV-Tools/source/val/ |
D | validate_memory_semantics.cpp | 60 const size_t num_memory_order_set_bits = spvtools::utils::CountSetBits( in ValidateMemorySemantics()
|
D | validate_image.cpp | 266 spvtools::utils::CountSetBits(mask_bits_having_operands); in ValidateImageOperands() 292 if (spvtools::utils::CountSetBits(mask & (SpvImageOperandsOffsetMask | in ValidateImageOperands()
|
/external/deqp-deps/SPIRV-Tools/source/util/ |
D | bitutils.h | 97 size_t CountSetBits(T word) {
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/util/ |
D | bitutils.h | 97 size_t CountSetBits(T word) {
|
/external/swiftshader/third_party/SPIRV-Tools/source/util/ |
D | bitutils.h | 97 size_t CountSetBits(T word) {
|
/external/swiftshader/third_party/SPIRV-Tools/source/val/ |
D | validate_memory_semantics.cpp | 60 const size_t num_memory_order_set_bits = spvtools::utils::CountSetBits( in ValidateMemorySemantics()
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/val/ |
D | validate_memory_semantics.cpp | 59 const size_t num_memory_order_set_bits = spvtools::utils::CountSetBits( in ValidateMemorySemantics()
|
/external/vixl/test/aarch64/ |
D | test-utils-aarch64.cc | 513 VIXL_ASSERT(CountSetBits(list, kNumberOfRegisters) == reg_count); in PopulateRegisterArray() 544 VIXL_ASSERT(CountSetBits(list, kNumberOfVRegisters) == reg_count); in PopulateVRegisterArray()
|