Searched refs:rnd (Results 1 – 8 of 8) sorted by relevance
| /oneTBB/test/tbb/ |
| H A D | test_scheduler_mix.cpp | 407 void create(Random& rnd) { in create() argument 411 unsigned int num_reserved = rnd.get() % num_threads; in create() 413 tbb::task_arena::priority priority = priorities[rnd.get() % 3]; in create() 431 void destroy(Random& rnd) { in destroy() argument 476 a = find_arena(rnd.get() % maxArenas, in acquire() 592 static void do_it(Random& rnd) { in do_it() 600 int sz = rnd.get() % 10000; in do_it() 601 auto doGlbAction = rnd.get() % 1000 == 42; in do_it() 608 switch (rnd.get() % num_parts) { in do_it() 628 auto& rnd = threadRandom; in global_actor() local [all …]
|
| H A D | test_global_control.cpp | 69 utils::FastRandom<> rnd( ++gSeed ); in operator ()() local 74 switch ( rnd.get() % numCases ) { in operator ()() 95 utils::NativeParallelFor( rnd.get() % 5 + 1, TestMultpleWaitBody( true ) ); in operator ()()
|
| H A D | test_concurrent_priority_queue.cpp | 30 utils::FastRandom<> rnd(1234); in test_cpq_with_smart_pointers() local 34 const int rnd_get = rnd.get(); in test_cpq_with_smart_pointers() 45 arrInt.emplace_back(rnd.get()); in test_cpq_with_smart_pointers()
|
| H A D | test_environment_whitebox.cpp | 59 utils::FastRandom<> rnd(12345); variable 63 return rnd.get() % 128; // 127 - the last ASCII symbol in operator ()() 118 cases.push_back(create_random_case<T>((rnd.get() % length) + 1)); in prepare_random_cases()
|
| H A D | test_task_arena.cpp | 776 if ( rnd.get() % 2 ) { in RunTwoBodies() 802 void RunNextLevel( utils::FastRandom<>& rnd, int &isolated_level ) const { in RunNextLevel() argument 804 switch ( rnd.get() % 2 ) { in RunNextLevel() 808 … RunTwoBodies( rnd, HeavyMixTestBody(myRandom, myIsolatedLevel, myNestedLevel + 1), p, &ctx ); in RunNextLevel() 831 utils::FastRandom<>& rnd = myRandom.local(); in operator ()() local 832 if ( rnd.get() % 2 == 1 ) { in operator ()() 833 RunNextLevel<tbb::auto_partitioner>( rnd, isolated_level ); in operator ()() 835 RunNextLevel<tbb::affinity_partitioner>( rnd, isolated_level ); in operator ()() 1153 utils::FastRandom<> rnd(1234); in TestMultipleWaits() local 1156 const int num_bunches = 3 + rnd.get()%3; in TestMultipleWaits() [all …]
|
| H A D | test_concurrent_queue.cpp | 135 utils::FastRandom<> rnd(42); in CopyWithThrowElement() local 146 rnd_elem = rnd.get() % queue_size; in CopyWithThrowElement()
|
| /oneTBB/test/common/ |
| H A D | fp_control.h | 121 inline void SetRoundingMode ( int rnd ) { fesetround(rnd); } in SetRoundingMode() argument
|
| /oneTBB/test/conformance/ |
| H A D | conformance_concurrent_priority_queue.cpp | 46 utils::FastRandom<> rnd(1234); in test_basic() local 50 arrInt.emplace_back(rnd.get()); in test_basic()
|