/third_party/mindspore/mindspore/ccsrc/pybind_api/random_normal/ |
D | philox_generator.cc | 22 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 …]
|
D | philox_generator.h | 29 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/ |
D | Ltest-cxx-exceptions.cxx | 38 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/ |
D | decrement_button.hpp | 32 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/ |
D | stable_heap.hpp | 331 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/ |
D | sample4.cc | 38 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()
|
D | sample4.h | 37 int counter_; 41 Counter() : counter_(0) {} in Counter()
|
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp32/ |
D | uniform_real_fp32.cc | 60 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/ |
D | bm_threadpool.cc | 69 : 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/ |
D | counter_main.cpp | 30 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/ |
D | perf_data.h | 41 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/ |
D | customize_counter.cpp | 29 : 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/ |
D | myobject.cc | 55 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()
|
D | myobject.h | 22 uint32_t counter_; variable
|
/third_party/boost/libs/fiber/examples/asio/ |
D | round_robin.hpp | 45 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/ |
D | flag.cc | 96 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/ |
D | work_serializer_test.cc | 69 c->counter = &self->counter_; in ExecuteManyLoop() 88 size_t counter_ = 0; member in __anona91235c20111::TestThread
|
/third_party/boost/libs/fiber/src/ |
D | context.cpp | 71 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/ |
D | rules.hpp | 314 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/ |
D | work_stealing.cpp | 26 std::atomic< std::uint32_t > work_stealing::counter_{ 0 }; 37 id_{ counter_++ }, in work_stealing()
|
/third_party/protobuf/src/google/protobuf/io/ |
D | tokenizer_unittest.cc | 126 : 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/ |
D | trace_info.h | 254 …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/ |
D | i915_state_emit.c | 433 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/ |
D | work_stealing.hpp | 39 static std::atomic< std::uint32_t > counter_; member in boost::fibers::algo::work_stealing
|
/third_party/grpc/test/core/surface/ |
D | completion_queue_test.cc | 418 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
|