/external/libvorbis/examples/ |
D | seeking_example.c | 138 ogg_int64_t val=(double)rand()/RAND_MAX*length; in main() 157 ogg_int64_t val=(double)rand()/RAND_MAX*pcmlength; in main() 176 ogg_int64_t val=(double)rand()/RAND_MAX*pcmlength; in main() 200 double val=(double)rand()/RAND_MAX*timelength; in main() 219 double val=(double)rand()/RAND_MAX*timelength; in main()
|
/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/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_init5.cc | 28 if (c->x >= RAND_MAX) in Thread1()
|
D | static_init6.cc | 28 if (c->x >= RAND_MAX) in Thread1()
|
D | static_init3.cc | 34 if (c->x >= RAND_MAX) in Thread2()
|
/external/srtp/crypto/include/ |
D | kernel_compat.h | 69 #define RAND_MAX 32767 macro 75 return temp % (RAND_MAX+1); in rand()
|
/external/pdfium/third_party/freetype/src/cff/ |
D | cf2read.c | 59 return (double)rand() / RAND_MAX < .00; in randomError2() 66 return (double)rand() / RAND_MAX < .00 ? rand() : 0; in randomValue()
|
/external/freetype/src/cff/ |
D | cf2read.c | 59 return (double)rand() / RAND_MAX < .00; in randomError2() 66 return (double)rand() / RAND_MAX < .00 ? rand() : 0; in randomValue()
|
/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/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/libopus/celt/tests/ |
D | test_unit_entropy.c | 174 ft=rand()/((RAND_MAX>>(rand()%11U))+1U)+10; in main() 175 sz=rand()/((RAND_MAX>>(rand()%9U))+1U); in main() 235 sz=rand()/((RAND_MAX>>(rand()%9U))+1U); in main() 243 data[j]=rand()/((RAND_MAX>>1)+1); in main() 245 enc_method[j]=rand()/((RAND_MAX>>2)+1); in main() 282 dec_method=rand()/((RAND_MAX>>2)+1); in main()
|
/external/libcxx/test/std/depr/depr.c.headers/ |
D | stdlib_h.pass.cpp | 31 #ifndef RAND_MAX 32 #error RAND_MAX not defined
|
/external/ceres-solver/examples/ |
D | random.h | 44 return r / RAND_MAX; in RandDouble()
|
/external/skia/tests/ |
D | PathOpsCubicIntersectionTest.cpp | 462 cubic1[i].fX = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest() 463 cubic1[i].fY = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest() 464 cubic2[i].fX = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest() 465 cubic2[i].fY = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest()
|
/external/webrtc/src/system_wrappers/test/TestSort/ |
D | TestSort.cpp | 108 double floatRand = static_cast<double>(rand()) / RAND_MAX; in TypedRand() 122 return static_cast<Type>((static_cast<Type>(rand()) / RAND_MAX) - 0.5); in TypedRand()
|
/external/ceres-solver/internal/ceres/ |
D | random.h | 51 return r / RAND_MAX; in RandDouble()
|
/external/libcxx/test/std/language.support/support.runtime/ |
D | cstdlib.pass.cpp | 31 #ifndef RAND_MAX 32 #error RAND_MAX not defined
|
/external/srtp/crypto/replay/ |
D | ut_sim.c | 53 return rand() > (RAND_MAX/2) ? -1 : 1; in ut_compar()
|
/external/fio/t/ |
D | stest.c | 34 size = 8 * sizeof(struct elem) + (int) (999.0 * (rand() / (RAND_MAX + 1.0))); in do_rand_allocs()
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_test_main.c | 196 value = (double)rand()/(double)RAND_MAX; in random_elem() 240 return (float)((double)rand()/(double)RAND_MAX); in random_float()
|
/external/gptfdisk/ |
D | guid.cc | 163 uuidData[i] = (unsigned char) (256.0 * (rand() / (RAND_MAX + 1.0))); in Randomize()
|
/external/eigen/Eigen/src/Core/ |
D | MathFunctions.h | 441 return x + (y-x) * Scalar(std::rand()) / Scalar(RAND_MAX); 503 return x + Scalar((NonInteger(y)-x+1) * std::rand() / (RAND_MAX + NonInteger(1))); 511 enum { rand_bits = floor_log2<(unsigned int)(RAND_MAX)+1>::value,
|
/external/mesa3d/src/mesa/math/ |
D | m_debug_util.h | 264 GLfloat f = (GLfloat)rand() / (GLfloat)RAND_MAX; in rnd()
|