Home
last modified time | relevance | path

Searched refs:count_ (Results 1 – 25 of 75) sorted by relevance

123

/third_party/gn/src/gn/
Dhash_table_base.h209 : count_(other.count_), size_(other.size_) { in HashTableBase()
227 : count_(other.count_), size_(other.size_), buckets_(other.buckets_) { in HashTableBase()
246 bool empty() const { return count_ == 0; } in empty()
249 size_t size() const { return count_; } in size()
434 count_ = 0; in NodeClear()
478 count_ += 1; in UpdateAfterInsert()
479 if (UNLIKELY(count_ * 4 >= size_ * 3)) { in UpdateAfterInsert()
491 count_ -= 1; in UpdateAfterRemoval()
536 size_t count_ = 0; variable
/third_party/node/src/
Daliased_buffer.h36 : isolate_(isolate), count_(count), byte_offset_(0) { in AliasedBufferBase()
66 : isolate_(isolate), count_(count), byte_offset_(byte_offset) { in AliasedBufferBase()
86 count_(that.count_), in AliasedBufferBase()
95 count_ = that.count_;
188 DCHECK_LT(index, count_); in SetValue()
196 DCHECK_LT(index, count_); in GetValue()
212 return count_; in Length()
219 DCHECK_GE(new_capacity, count_); in reserve()
223 const size_t old_size_in_bytes = sizeof(NativeT) * count_; in reserve()
243 count_ = new_capacity; in reserve()
[all …]
Dnode_http_common-inl.h22 count_ = header_count.As<v8::Uint32>()->Value(); in NgHeaders()
25 if (count_ == 0) { in NgHeaders()
31 count_ * sizeof(nv_t) + in NgHeaders()
35 char* header_contents = start + (count_ * sizeof(nv_t)); in NgHeaders()
50 if (n >= count_) { in NgHeaders()
54 count_ = 1; in NgHeaders()
/third_party/skia/third_party/externals/dawn/src/dawn_node/binding/
DAsyncRunner.cpp26 assert(count_ != std::numeric_limits<decltype(count_)>::max()); in Begin()
27 if (count_++ == 0) { in Begin()
33 assert(count_ > 0); in End()
34 count_--; in End()
52 if (count_ > 0) { in QueueTick()
/third_party/flutter/engine/flutter/flow/
Dinstrumentation.h60 Counter() : count_(0) {} in Counter()
62 size_t count() const { return count_; } in count()
64 void Reset(size_t count = 0) { count_ = count; }
66 void Increment(size_t count = 1) { count_ += count; }
69 size_t count_;
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/
Dnotification_test.cc29 ThreadSafeCounter() : count_(0) {} in ThreadSafeCounter()
33 ++count_; in Increment()
38 return count_; in Get()
43 auto cond = [this, n]() { return count_ >= n; }; in WaitUntilGreaterOrEqual()
49 int count_; member in absl::ThreadSafeCounter
Dblocking_counter.cc32 : count_(initial_count), in BlockingCounter()
39 int count = count_.fetch_sub(1, std::memory_order_acq_rel) - 1; in DecrementCount()
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
Dcord_internal.h87 constexpr RefcountAndFlags() : count_{kRefIncrement} {} in RefcountAndFlags()
89 explicit constexpr RefcountAndFlags(Immortal) : count_(kImmortalFlag) {} in RefcountAndFlags()
93 count_.fetch_add(kRefIncrement, std::memory_order_relaxed); in Increment()
104 int32_t refcount = count_.load(std::memory_order_acquire) & kRefcountMask; in Decrement()
107 (count_.fetch_sub(kRefIncrement, std::memory_order_acq_rel) & in Decrement()
114 count_.fetch_sub(kRefIncrement, std::memory_order_acq_rel) & in DecrementExpectHighRefcount()
122 return count_.load(std::memory_order_acquire) >> kNumFlags; in Get()
134 return (count_.load(std::memory_order_acquire) & kRefcountMask) == in IsOne()
139 return (count_.load(std::memory_order_relaxed) & kImmortalFlag) != 0; in IsImmortal()
162 std::atomic<int32_t> count_; variable
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/internal/
Dper_thread_sem_test.cc42 SimpleSemaphore() : count_(0) {} in SimpleSemaphore()
51 cv_.wait(lock, [this]() { return count_ > 0; }); in Wait()
52 --count_; in Wait()
62 ++count_; in Post()
69 int count_; member in absl::synchronization_internal::SimpleSemaphore
/third_party/flutter/engine/flutter/fml/synchronization/
Dcount_down_latch.cc11 CountDownLatch::CountDownLatch(size_t count) : count_(count) { in CountDownLatch()
12 if (count_ == 0) { in CountDownLatch()
24 if (--count_ == 0) { in CountDown()
/third_party/benchmark/test/
Dfilter_test.cc22 ++count_; in ReportRuns()
28 TestReporter() : count_(0), max_family_index_(0) {} in TestReporter()
32 size_t GetCount() const { return count_; } in GetCount()
37 mutable size_t count_; member in __anon84f56d430111::TestReporter
/third_party/flutter/skia/third_party/externals/spirv-tools/source/opt/
Dtypes.cpp104 : element_type_(type), count_(count) { in Vector()
111 return count_ == vt->count_ && element_type_->IsSame(vt->element_type_) && in IsSame()
117 oss << "<" << element_type_->str() << ", " << count_ << ">"; in str()
122 : element_type_(type), count_(count) { in Matrix()
129 return count_ == mt->count_ && element_type_->IsSame(mt->element_type_) && in IsSame()
135 oss << "<" << element_type_->str() << ", " << count_ << ">"; in str()
/third_party/skia/third_party/externals/tint/src/sem/
Darray.h60 uint32_t Count() const { return count_; } in Count()
86 bool IsRuntimeSized() const { return count_ == 0; } in IsRuntimeSized()
102 const uint32_t count_; variable
Darray.cc33 count_(count), in Array()
49 type_name += "_count_" + std::to_string(count_); in type_name()
65 out << ", " << count_; in FriendlyName()
/third_party/skia/third_party/externals/libwebp/src/mux/
Danim_encode.c74 size_t count_; // Number of valid frames. member
112 enc->count_ = 0; in ResetCounters()
927 const size_t position = enc->count_ - 2; in SetPreviousDisposeMethod()
929 assert(enc->count_ >= 2); // As current and previous frames are in enc. in SetPreviousDisposeMethod()
944 const size_t position = enc->count_ - 1; in IncreasePreviousDuration()
948 assert(enc->count_ >= 1); in IncreasePreviousDuration()
980 EncodedFrame* const curr_enc_frame = GetFrame(enc, enc->count_); in IncreasePreviousDuration()
992 ++enc->count_; in IncreasePreviousDuration()
994 enc->flush_count_ = enc->count_ - 1; in IncreasePreviousDuration()
1199 const size_t position = enc->count_; in CacheFrame()
[all …]
/third_party/flutter/skia/third_party/externals/libwebp/src/mux/
Danim_encode.c74 size_t count_; // Number of valid frames. member
112 enc->count_ = 0; in ResetCounters()
930 const size_t position = enc->count_ - 2; in SetPreviousDisposeMethod()
932 assert(enc->count_ >= 2); // As current and previous frames are in enc. in SetPreviousDisposeMethod()
947 const size_t position = enc->count_ - 1; in IncreasePreviousDuration()
951 assert(enc->count_ >= 1); in IncreasePreviousDuration()
982 EncodedFrame* const curr_enc_frame = GetFrame(enc, enc->count_); in IncreasePreviousDuration()
994 ++enc->count_; in IncreasePreviousDuration()
996 enc->flush_count_ = enc->count_ - 1; in IncreasePreviousDuration()
1201 const size_t position = enc->count_; in CacheFrame()
[all …]
/third_party/skia/third_party/externals/tint/src/
Dblock_allocator_test.cc23 explicit LifetimeCounter(size_t* count) : count_(count) { (*count)++; } in LifetimeCounter()
24 ~LifetimeCounter() { (*count_)--; } in ~LifetimeCounter()
26 size_t* const count_; member
/third_party/mesa3d/src/amd/vulkan/radix_sort/shaders/
Dinit.comp89 #define RS_COUNT_RU_BLOCKS(count_, block_size_) ((count_ + block_size_ - 1) / (block_size_))
90 #define RS_COUNT_RD_BLOCKS(count_, block_size_) ((count_) / (block_size_))
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dtypes.cpp284 : Type(kVector), element_type_(type), count_(count) { in Vector()
291 return count_ == vt->count_ && in IsSameImpl()
298 oss << "<" << element_type_->str() << ", " << count_ << ">"; in str()
305 words->push_back(count_); in GetExtraHashWords()
309 : Type(kMatrix), element_type_(type), count_(count) { in Matrix()
316 return count_ == mt->count_ && in IsSameImpl()
323 oss << "<" << element_type_->str() << ", " << count_ << ">"; in str()
330 words->push_back(count_); in GetExtraHashWords()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dtypes.cpp284 : Type(kVector), element_type_(type), count_(count) { in Vector()
291 return count_ == vt->count_ && in IsSameImpl()
298 oss << "<" << element_type_->str() << ", " << count_ << ">"; in str()
305 words->push_back(count_); in GetExtraHashWords()
309 : Type(kMatrix), element_type_(type), count_(count) { in Matrix()
316 return count_ == mt->count_ && in IsSameImpl()
323 oss << "<" << element_type_->str() << ", " << count_ << ">"; in str()
330 words->push_back(count_); in GetExtraHashWords()
/third_party/spirv-tools/source/opt/
Dtypes.cpp311 : Type(kVector), element_type_(type), count_(count) { in Vector()
318 return count_ == vt->count_ && in IsSameImpl()
325 oss << "<" << element_type_->str() << ", " << count_ << ">"; in str()
332 hash = hash_combine(hash, count_); in ComputeExtraStateHash()
337 : Type(kMatrix), element_type_(type), count_(count) { in Matrix()
344 return count_ == mt->count_ && in IsSameImpl()
351 oss << "<" << element_type_->str() << ", " << count_ << ">"; in str()
356 hash = hash_combine(hash, count_); in ComputeExtraStateHash()
/third_party/spirv-tools/test/reduce/
Dreducer_test.cpp42 count_(0) {} in PingPongInteresting()
46 if (count_ > always_interesting_after_) { in IsInteresting()
52 count_++; in IsInteresting()
59 uint32_t count_; member in spvtools::reduce::__anon902a99120111::PingPongInteresting
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/reduce/
Dreducer_test.cpp42 count_(0) {} in PingPongInteresting()
46 if (count_ > always_interesting_after_) { in IsInteresting()
52 count_++; in IsInteresting()
59 uint32_t count_; member in spvtools::reduce::__anon4fb955b30111::PingPongInteresting
/third_party/skia/third_party/externals/spirv-tools/test/reduce/
Dreducer_test.cpp42 count_(0) {} in PingPongInteresting()
46 if (count_ > always_interesting_after_) { in IsInteresting()
52 count_++; in IsInteresting()
59 uint32_t count_; member in spvtools::reduce::__anonee269f470111::PingPongInteresting
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/classes/members/instance_and_static_members/
Dinstance_and_static_members_2.ts29 constructor(count_: number) {
30 this.count = count_;

123