Searched refs:counts_ (Results 1 – 7 of 7) sorted by relevance
/external/perfetto/src/trace_processor/containers/ |
D | bit_vector.h | 92 return counts_[idx] + blocks_[idx].GetNumBitsSet(addr.block_offset); in GetNumBitsSet() 106 auto it = std::upper_bound(counts_.begin(), counts_.end(), n); in IndexOfNthSet() 107 PERFETTO_DCHECK(it != counts_.begin()); in IndexOfNthSet() 111 static_cast<uint32_t>(std::distance(counts_.begin(), it) - 1); in IndexOfNthSet() 115 uint32_t set_in_block = n - counts_[block_idx]; in IndexOfNthSet() 134 uint32_t size = static_cast<uint32_t>(counts_.size()); in Set() 136 counts_[i]++; in Set() 153 uint32_t size = static_cast<uint32_t>(counts_.size()); in Clear() 155 counts_[i]--; in Clear() 169 counts_.emplace_back(t); in AppendTrue() [all …]
|
D | bit_vector_iterators.cc | 57 static_cast<int32_t>(bv_->counts_[i]) + set_bit_count_diff_; in OnBlockChange() 60 bv_->counts_[i] = static_cast<uint32_t>(new_count); in OnBlockChange() 97 addr.block_idx == bv().counts_.size() - 1 in ReadSetBitBatch() 99 : bv().counts_[addr.block_idx + 1]; in ReadSetBitBatch()
|
D | bit_vector.cc | 43 : size_(size), counts_(std::move(counts)), blocks_(std::move(blocks)) {} in BitVector() 46 return BitVector(blocks_, counts_, size_); in Copy()
|
/external/libtextclassifier/native/lang_id/features/ |
D | char-ngram-feature.cc | 56 counts_.assign(ngram_id_dimension_, 0); in Setup() 67 SAFTM_CHECK_EQ(counts_.size(), ngram_id_dimension_); in ComputeNgramCounts() 103 int &ref_to_count_for_ngram = counts_[ngram_id]; in ComputeNgramCounts() 141 const float weight = counts_[ngram_id] / norm; in Evaluate() 146 counts_[ngram_id] = 0; in Evaluate()
|
D | char-ngram-feature.h | 81 mutable std::vector<int> counts_; variable
|
/external/libchrome/base/metrics/ |
D | sample_vector.h | 76 subtle::Acquire_Load(&counts_)); in counts() 81 subtle::Acquire_Load(&counts_)); in counts() 85 subtle::Release_Store(&counts_, reinterpret_cast<uintptr_t>(counts)); in set_counts() 106 mutable subtle::AtomicWord counts_ = 0; variable 176 const HistogramBase::AtomicCount* counts_; variable
|
D | sample_vector.cc | 265 if (subtle::NoBarrier_Load(&counts_) == 0) { in MountCountsStorageAndMoveSingleSample() 267 if (subtle::NoBarrier_Load(&counts_) == 0) { in MountCountsStorageAndMoveSingleSample() 367 : counts_(&(*counts)[0]), in SampleVectorIterator() 379 : counts_(counts), in SampleVectorIterator() 408 *count = subtle::NoBarrier_Load(&counts_[index_]); in Get() 423 if (subtle::NoBarrier_Load(&counts_[index_]) != 0) in SkipEmptyBuckets()
|