/external/eigen/test/ |
D | rand.cpp | 78 CALL_SUBTEST(check_in_range<int>(-RAND_MAX+10,RAND_MAX-10)); in test_rand() 116 CALL_SUBTEST(check_histogram<int>(-RAND_MAX+10,-RAND_MAX+10+bins*(RAND_MAX/bins)-1,bins)); in test_rand() 117 …CALL_SUBTEST(check_histogram<int>(-RAND_MAX+10,-int64(RAND_MAX)+10+bins*(2*int64(RAND_MAX)/bins)-1… in test_rand()
|
/external/eigen/bench/btl/generic_bench/init/ |
D | init_function.hh | 35 return std::rand()/double(RAND_MAX); in pseudo_random() 40 return std::rand()/double(RAND_MAX); in pseudo_random()
|
/external/webrtc/webrtc/voice_engine/test/auto_test/ |
D | voe_stress_test.cc | 250 action = rand() <= (RAND_MAX / 2); in CreateDeleteChannelsTest() 267 (static_cast<double> (RAND_MAX) + 1.0f) * in CreateDeleteChannelsTest() 352 if (rnd < (RAND_MAX / 2)) { in MultipleThreadsTest() 396 if (rnd < (RAND_MAX / 2)) { in ProcessExtraApi()
|
/external/compiler-rt/test/tsan/ |
D | static_init1.cc | 13 if (p.x > RAND_MAX || p.y > RAND_MAX) in Thread()
|
D | static_init2.cc | 15 if (c->x >= RAND_MAX) in foo()
|
D | static_init3.cc | 34 if (c->x >= RAND_MAX) in Thread2()
|
D | static_init6.cc | 28 if (c->x >= RAND_MAX) in Thread1()
|
D | static_init5.cc | 28 if (c->x >= RAND_MAX) in Thread1()
|
/external/libopus/celt/tests/ |
D | test_unit_entropy.c | 175 ft=rand()/((RAND_MAX>>(rand()%11U))+1U)+10; in main() 176 sz=rand()/((RAND_MAX>>(rand()%9U))+1U); in main() 236 sz=rand()/((RAND_MAX>>(rand()%9U))+1U); in main() 244 data[j]=rand()/((RAND_MAX>>1)+1); in main() 246 enc_method[j]=rand()/((RAND_MAX>>2)+1); in main() 283 dec_method=rand()/((RAND_MAX>>2)+1); in main()
|
/external/ltp/testcases/network/stress/ns-tools/ |
D | ns-icmpv4_sender.c | 442 rand_val = rand() / ((RAND_MAX + 1U) / 16); in thrust_fakes() 450 rand_val = rand() / ((RAND_MAX + 1U) / 3); in thrust_fakes() 458 rand_val = rand() / ((RAND_MAX + 1U) / 3); in thrust_fakes() 466 rand_val = rand() / ((RAND_MAX + 1U) / 3); in thrust_fakes() 478 rand_val = rand() / ((RAND_MAX + 1U) / 5); in thrust_fakes() 498 rand() / ((RAND_MAX + 1U) / 0x100); in thrust_fakes()
|
D | ns-common.c | 207 last = RAND_MAX < (unsigned int)last ? RAND_MAX : last; in rand_within() 210 rand_val = rand() / ((RAND_MAX + 1U) / num) + first; in rand_within() 232 rand_val = rand() / ((RAND_MAX + 1U) / (bitsize + oversize)); in bit_change_seed()
|
/external/eigen/unsupported/doc/examples/ |
D | FFT.cpp | 64 vec[k] = T( rand() )/T(RAND_MAX) - .5; in RandomFill() 71 vec[k] = std::complex<T> ( T( rand() )/T(RAND_MAX) - .5, T( rand() )/T(RAND_MAX) - .5); in RandomFill()
|
/external/freetype/src/psaux/ |
D | psread.c | 59 return (double)rand() / RAND_MAX < .00; in randomError2() 66 return (double)rand() / RAND_MAX < .00 ? rand() : 0; in randomValue()
|
/external/eigen/unsupported/test/ |
D | FFTW.cpp | 14 …x<T> RandomCpx() { return std::complex<T>( (T)(rand()/(T)RAND_MAX - .5), (T)(rand()/(T)RAND_MAX - … in RandomCpx() 89 tbuf[k]= (T)( rand()/(double)RAND_MAX - .5); in test_scalar_generic() 152 inbuf[k]= Complex( (T)(rand()/(double)RAND_MAX - .5), (T)(rand()/(double)RAND_MAX - .5) ); in test_complex_generic()
|
/external/deqp/external/openglcts/modules/glesext/gpu_shader5/ |
D | esextcGPUShader5FmaPrecision.cpp | 419 a = static_cast<float>(randomFormula(RAND_MAX)) / in generateData() 420 (static_cast<float>(static_cast<float>(RAND_MAX) / static_cast<float>(m_amplitude * 2.0f))) - in generateData() 422 b = static_cast<float>(randomFormula(RAND_MAX)) / in generateData() 423 (static_cast<float>(static_cast<float>(RAND_MAX) / static_cast<float>(m_amplitude * 2.0f))) - in generateData() 425 c = static_cast<float>(randomFormula(RAND_MAX)) / in generateData() 426 (static_cast<float>(static_cast<float>(RAND_MAX) / static_cast<float>(m_amplitude * 2.0f))) - in generateData()
|
/external/autotest/client/tests/isic/ |
D | isic-gcc41-fix.patch | 13 if ( rand() <= (RAND_MAX * ICMPCksm) ) 42 if ( rand() <= (RAND_MAX * TCPCksm) )
|
/external/libaom/libaom/test/ |
D | ec_test.cc | 46 sz = rand() / ((RAND_MAX >> (rand() % 9U)) + 1U); in TEST() 55 data[j] = rand() / ((RAND_MAX >> 1) + 1); in TEST()
|
/external/libcxx/test/std/depr/depr.c.headers/ |
D | stdlib_h.pass.cpp | 63 #ifndef RAND_MAX 64 #error RAND_MAX not defined
|
/external/webrtc/webrtc/test/ |
D | fake_network_pipe.cc | 28 double uniform1 = (rand() + 1.0) / (RAND_MAX + 1.0); // NOLINT in GaussianRandom() 29 double uniform2 = (rand() + 1.0) / (RAND_MAX + 1.0); // NOLINT in GaussianRandom()
|
/external/webrtc/webrtc/system_wrappers/test/TestSort/ |
D | TestSort.cc | 109 double floatRand = static_cast<double>(rand()) / RAND_MAX; in TypedRand() 123 return static_cast<Type>((static_cast<Type>(rand()) / RAND_MAX) - 0.5); in TypedRand()
|
/external/skia/tests/ |
D | PathOpsCubicIntersectionTest.cpp | 480 cubic1.fPts[i].fX = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest() 481 cubic1.fPts[i].fY = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest() 482 cubic2.fPts[i].fX = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest() 483 cubic2.fPts[i].fY = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest()
|
/external/skqp/tests/ |
D | PathOpsCubicIntersectionTest.cpp | 480 cubic1.fPts[i].fX = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest() 481 cubic1.fPts[i].fY = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest() 482 cubic2.fPts[i].fX = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest() 483 cubic2.fPts[i].fY = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest()
|
/external/grpc-grpc/test/core/util/ |
D | port_isolated_runtime_environment.cc | 39 (static_cast<double>(RAND_MAX) + 1.0); // values from [0,1) in get_random_port_offset()
|
/external/libcxx/test/std/language.support/support.runtime/ |
D | cstdlib.pass.cpp | 40 #ifndef RAND_MAX 41 #error RAND_MAX not defined
|
/external/tensorflow/tensorflow/lite/testing/ |
D | generate_testspec_test.cc | 27 return static_cast<float>(rand_r(&seed)) / RAND_MAX - 0.5f; in TEST()
|