Searched defs:rng_ (Results 1 - 8 of 8) sorted by relevance

/external/v8/test/unittests/
H A Dtest-utils.h61 RandomNumberGenerator* rng() { return &rng_; }
64 RandomNumberGenerator rng_; member in class:v8::base::TestWithRandomNumberGenerator
/external/vulkan-validation-layers/demos/smoke/
H A DSimulation.h49 std::mt19937 rng_; member in class:Animation
76 std::mt19937 rng_; member in class:Path
H A DSimulation.cpp78 rng_(rng_seed),
87 return glm::vec3{ red_(rng_),
88 green_(rng_),
89 blue_(rng_) };
93 std::mt19937 rng_; member in class:__anon20981::ColorPicker
102 : rng_(rng_seed), dir_(-1.0f, 1.0f), speed_(0.1f, 1.0f)
104 float x = dir_(rng_);
105 float y = dir_(rng_);
106 float z = dir_(rng_);
112 current_.speed = speed_(rng_);
175 std::mt19937 rng_; member in class:__anon20982::RandomCurve
[all...]
/external/v8/test/cctest/compiler/
H A Dtest-gap-resolver.cc163 ParallelMoveCreator() : rng_(CcTest::random_number_generator()) {}
182 int index = rng_->NextInt(5);
216 int index = rng_->NextInt(7);
218 switch (rng_->NextInt(is_source ? 5 : 4)) {
237 v8::base::RandomNumberGenerator* rng_; member in class:v8::internal::compiler::ParallelMoveCreator
/external/v8/test/unittests/compiler/
H A Dinstruction-selector-unittest.h27 base::RandomNumberGenerator* rng() { return &rng_; }
286 base::RandomNumberGenerator rng_; member in class:v8::internal::compiler::InstructionSelectorTest
H A Dtyper-unittest.cc26 rng_ = random_number_generator();
35 double x = rng_->NextInt();
37 x *= rng_->NextInt();
48 int32s.push_back(rng_->NextInt());
56 v8::base::RandomNumberGenerator* rng_; member in class:v8::internal::compiler::TyperTest
87 double i = numbers[rng_->NextInt(static_cast<int>(numbers.size()))];
88 double j = numbers[rng_->NextInt(static_cast<int>(numbers.size()))];
98 switch (rng_->NextInt(4)) {
109 return rng_->NextInt() * static_cast<double>(rng_
[all...]
/external/v8/test/cctest/
H A Dtypes-fuzz.h41 : zone_(zone), isolate_(isolate), rng_(rng) {
96 integers.push_back(isolate->factory()->NewNumber(-rng_->NextInt(10)));
97 integers.push_back(isolate->factory()->NewNumber(+rng_->NextInt(10)));
99 double x = rng_->NextInt();
101 x *= rng_->NextInt();
214 return types[rng_->NextInt(static_cast<int>(types.size()))];
218 switch (rng_->NextInt(depth == 0 ? 3 : 20)) {
225 for (int i = 0, m = 1 + rng_->NextInt(3); i < m; ++i) {
226 int j = rng_->NextInt(n);
243 int i = rng_
312 v8::base::RandomNumberGenerator* rng_; member in class:v8::internal::Types
[all...]
H A Dtest-strings.cc279 MyRandomNumberGenerator rng_; member in class:ConsStringGenerationData
289 rng_.init();
291 building_blocks_, kNumberOfBuildingBlocks, long_blocks, &rng_);
316 rng_.init();
399 bool flat = data->rng_.next(data->empty_leaf_threshold_);
400 bool terminate_early = data->rng_.next(data->early_termination_threshold_);
411 bool terminate_left = terminate || !data->rng_.next(data->leftness_);
412 bool terminate_right = terminate || !data->rng_.next(data->rightness_);
416 left = data->block(data->rng_.next());
425 right = data->block(data->rng_
[all...]

Completed in 187 milliseconds