Home
last modified time | relevance | path

Searched refs:counter_ (Results 1 – 25 of 31) sorted by relevance

12

/third_party/mindspore/mindspore/ccsrc/pybind_api/random_normal/
Dphilox_generator.cc22 if ((++counter_[0] == 0) && (++counter_[1] == 0) && (++counter_[2] == 0)) { in Jump()
23 ++counter_[3]; in Jump()
29 min_counter = static_cast<uint64_t>(counter_[1]); in JumpStep()
31 min_counter += counter_[0]; in JumpStep()
33 max_counter = static_cast<uint64_t>(counter_[3]); in JumpStep()
35 max_counter += counter_[2]; in JumpStep()
40 counter_[0] = static_cast<uint32_t>(min_counter); in JumpStep()
41 counter_[1] = static_cast<uint32_t>(min_counter >> kShiftNum); in JumpStep()
42 counter_[2] = static_cast<uint32_t>(max_counter); in JumpStep()
43 counter_[3] = static_cast<uint32_t>(max_counter >> kShiftNum); in JumpStep()
[all …]
Dphilox_generator.h29 counter_[0] = 0; in PhiloxGenerator()
30 counter_[1] = 0; in PhiloxGenerator()
31 counter_[2] = static_cast<uint32_t>(seed_); in PhiloxGenerator()
32 counter_[3] = static_cast<uint32_t>(seed_ >> 32); in PhiloxGenerator()
38 counter_[0] = 0; in PhiloxGenerator()
39 counter_[1] = 0; in PhiloxGenerator()
40 counter_[2] = static_cast<uint32_t>(seed2_); in PhiloxGenerator()
41 counter_[3] = static_cast<uint32_t>(seed2_ >> 32); in PhiloxGenerator()
56 std::array<uint32_t, gResultNum> counter_;
/third_party/libunwind/tests/
DLtest-cxx-exceptions.cxx38 Test() { ++counter_; } in Test()
39 ~Test() { -- counter_; } in ~Test()
40 Test(const Test&) { ++counter_; } in Test()
43 static int counter_; member
46 int Test::counter_ = 0; member in Test
72 if (Test::counter_ != 0) in main()
74 return Test::counter_; in main()
/third_party/boost/libs/contract/example/mitchell02/counter/
Ddecrement_button.hpp32 explicit decrement_button(counter& a_counter) : counter_(a_counter) { in decrement_button()
39 counter_.attach(this); in decrement_button()
53 BOOST_CONTRACT_OLDOF(v, counter_.value()); in on_bn_clicked()
59 BOOST_CONTRACT_ASSERT(counter_.value() == *old_value - 1); in on_bn_clicked()
62 counter_.decrement(); in on_bn_clicked()
80 BOOST_CONTRACT_ASSERT(enabled() == (counter_.value() > 0)); in update()
84 if(counter_.value() == 0) disable(); in update()
89 counter& counter_; member in decrement_button
/third_party/boost/boost/heap/detail/
Dstable_heap.hpp331 counter_(0) in heap_base()
341 size_holder_type(std::move(static_cast<size_holder_type&>(rhs))), counter_(rhs.counter_) in BOOST_NOEXCEPT_IF()
343 rhs.counter_ = 0; in BOOST_NOEXCEPT_IF()
352 size_holder_type(static_cast<size_holder_type const &>(rhs)), counter_(rhs.counter_) in heap_base()
360 counter_ = rhs.counter_; in operator =()
361 rhs.counter_ = 0; in operator =()
370 counter_ = rhs.counter_; in operator =()
387 stability_counter_type count = ++counter_; in make_node()
388 if (counter_ == (std::numeric_limits<stability_counter_type>::max)()) in make_node()
397 stability_counter_type count = ++counter_; in make_node()
[all …]
/third_party/googletest/googletest/samples/
Dsample4.cc38 return counter_++; in Increment()
44 if (counter_ == 0) { in Decrement()
45 return counter_; in Decrement()
47 return counter_--; in Decrement()
53 printf("%d", counter_); in Print()
Dsample4.h37 int counter_;
41 Counter() : counter_(0) {} in Counter()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp32/
Duniform_real_fp32.cc60 counter_[kThirdCounterIndex] = static_cast<uint32_t>(seed_hi); in PhiloxRandom()
61 counter_[kFourthCounterIndex] = static_cast<uint32_t>(seed_hi >> kBitWidth); in PhiloxRandom()
70 counter_[kFirstCounterIndex] += count_lo; in Skip()
71 if (counter_[kFirstCounterIndex] < count_lo) { in Skip()
75 counter_[kSecondCounterIndex] += count_hi; in Skip()
76 if (counter_[kSecondCounterIndex] < count_hi) { in Skip()
77 if (++counter_[kThirdCounterIndex] == 0) { in Skip()
78 ++counter_[kFourthCounterIndex]; in Skip()
86 std::vector<uint32_t> counter = counter_; in operator ()()
123 if (++counter_[kFirstCounterIndex] == 0) { in SkipOne()
[all …]
/third_party/grpc/test/cpp/microbenchmarks/
Dbm_threadpool.cc69 : pool_(pool), counter_(counter), num_add_(num_add) { in AddAnotherFunctor()
81 callback->pool_, callback->counter_, callback->num_add_)); in Run()
83 callback->counter_->DecrementCount(); in Run()
91 BlockingCounter* counter_; member in grpc::testing::AddAnotherFunctor
133 SuicideFunctorForAdd(BlockingCounter* counter) : counter_(counter) { in SuicideFunctorForAdd()
143 callback->counter_->DecrementCount(); in Run()
148 BlockingCounter* counter_; member in grpc::testing::SuicideFunctorForAdd
186 : pool_(pool), counter_(counter), num_add_(num_add) { in AddSelfFunctor()
199 callback->counter_->DecrementCount(); in Run()
207 BlockingCounter* counter_; member in grpc::testing::AddSelfFunctor
[all …]
/third_party/boost/libs/contract/example/mitchell02/
Dcounter_main.cpp30 explicit view_of_counter(counter& a_counter) : counter_(a_counter) { in view_of_counter()
34 counter_.attach(this); in view_of_counter()
35 assert(counter_.value() == test_counter); in view_of_counter()
60 assert(counter_.value() == test_counter); in update()
64 counter& counter_; member in view_of_counter
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/perf/
Dperf_data.h41 PerfData(dsize_t max_rows, dsize_t n_cols) : counter_(0), max_rows_(max_rows), n_cols_(n_cols) { in PerfData()
59 counter_++; in AddSample()
79 dsize_t size() { return counter_ < max_rows_ ? counter_ : max_rows_; } in size()
85 dsize_t counter_; variable
/third_party/boost/libs/spirit/example/karma/
Dcustomize_counter.cpp29 : counter_(0), max_count_(max_count) in counter()
32 int counter_; member
77 return c.counter_; in call()
/third_party/node/test/js-native-api/7_factory_wrap/
Dmyobject.cc55 obj->counter_ = 0; in New()
57 NAPI_CALL(env, napi_get_value_uint32(env, args[0], &obj->counter_)); in New()
97 obj->counter_ += 1; in PlusOne()
100 NAPI_CALL(env, napi_create_uint32(env, obj->counter_, &num)); in PlusOne()
Dmyobject.h22 uint32_t counter_; variable
/third_party/boost/libs/fiber/examples/asio/
Dround_robin.hpp45 std::size_t counter_{ 0 }; member in boost::fibers::asio::round_robin
106 ++counter_; in awakened()
120 --counter_; in pick_next()
127 return 0 < counter_; in has_ready_fibers()
/third_party/abseil-cpp/absl/flags/internal/
Dflag.cc96 counter_(counter) {} in FlagState()
129 int64_t counter_; member in absl::flags_internal::FlagState
250 ++counter_; in StoreValue()
348 on_command_line, counter_); in SaveState()
353 on_command_line, counter_); in SaveState()
358 on_command_line, counter_); in SaveState()
367 if (flag_state.counter_ == counter_) { in RestoreState()
/third_party/grpc/test/core/iomgr/
Dwork_serializer_test.cc69 c->counter = &self->counter_; in ExecuteManyLoop()
88 size_t counter_ = 0; member in __anona91235c20111::TestThread
/third_party/boost/libs/fiber/src/
Dcontext.cpp71 static thread_local std::size_t counter_; member
74 if ( 0 == counter_++) { in context_initializer()
89 if ( 0 == --counter_) { in ~context_initializer()
101 thread_local std::size_t context_initializer::counter_{ 0 };
/third_party/boost/boost/spirit/home/support/detail/lexer/
Drules.hpp314 const std::size_t counter_ = next_unique_id (); in add() local
319 _unique_ids.front ().push_back (counter_); in add()
321 return counter_; in add()
692 const std::size_t counter_ = next_unique_id (); in add() local
696 first_counter_ = counter_; in add()
699 _unique_ids[curr_].push_back (counter_); in add()
/third_party/boost/libs/fiber/src/algo/
Dwork_stealing.cpp26 std::atomic< std::uint32_t > work_stealing::counter_{ 0 };
37 id_{ counter_++ }, in work_stealing()
/third_party/protobuf/src/google/protobuf/io/
Dtokenizer_unittest.cc126 : array_stream_(data, size, block_size), counter_(0) {} in TestInputStream()
133 if (counter_ % 3 == 0 || counter_ % 5 == 0) { in Next()
136 ++counter_; in Next()
139 ++counter_; in Next()
150 int counter_; member in google::protobuf::io::__anoneef4401c0111::TestInputStream
/third_party/mindspore/mindspore/core/utils/
Dtrace_info.h254 …ecialize(const std::string &counter) : TraceInfo(nullptr, "specialize", "") { counter_ = counter; } in TraceSpecialize()
256 std::string name() const override { return full_name_ + counter_; } in name()
257 std::string symbol() const override { return counter_ + "_"; } in symbol()
258 std::string full_name() const override { return full_name_ + counter_ + "_"; } in full_name()
263 std::string counter_;
/third_party/mesa3d/src/gallium/drivers/i915/
Di915_state_emit.c433 static int counter_##atom = 0; \ in i915_validate_state()
436 counter_##atom += tmp; \ in i915_validate_state()
438 printf("%s: \t%d/%d \t%2.2f\n", #atom, counter_##atom, counter_total, \ in i915_validate_state()
439 counter_##atom * 100.f / counter_total); \ in i915_validate_state()
/third_party/boost/boost/fiber/algo/
Dwork_stealing.hpp39 static std::atomic< std::uint32_t > counter_; member in boost::fibers::algo::work_stealing
/third_party/grpc/test/core/surface/
Dcompletion_queue_test.cc418 TagCallback(int* counter, int tag) : counter_(counter), tag_(tag) { in test_callback()
430 *callback->counter_ += callback->tag_; in test_callback()
439 int* counter_; in test_callback() member in test_callback::TagCallback

12