Home
last modified time | relevance | path

Searched refs:RAND_MAX (Results 1 – 25 of 47) sorted by relevance

12

/external/libvorbis/examples/
Dseeking_example.c138 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/
Dinit_function.hh35 return std::rand()/double(RAND_MAX); in pseudo_random()
40 return std::rand()/double(RAND_MAX); in pseudo_random()
/external/compiler-rt/test/tsan/
Dstatic_init1.cc13 if (p.x > RAND_MAX || p.y > RAND_MAX) in Thread()
Dstatic_init2.cc15 if (c->x >= RAND_MAX) in foo()
Dstatic_init5.cc28 if (c->x >= RAND_MAX) in Thread1()
Dstatic_init6.cc28 if (c->x >= RAND_MAX) in Thread1()
Dstatic_init3.cc34 if (c->x >= RAND_MAX) in Thread2()
/external/srtp/crypto/include/
Dkernel_compat.h69 #define RAND_MAX 32767 macro
75 return temp % (RAND_MAX+1); in rand()
/external/pdfium/third_party/freetype/src/cff/
Dcf2read.c59 return (double)rand() / RAND_MAX < .00; in randomError2()
66 return (double)rand() / RAND_MAX < .00 ? rand() : 0; in randomValue()
/external/freetype/src/cff/
Dcf2read.c59 return (double)rand() / RAND_MAX < .00; in randomError2()
66 return (double)rand() / RAND_MAX < .00 ? rand() : 0; in randomValue()
/external/eigen/unsupported/doc/examples/
DFFT.cpp64 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/
DFFTW.cpp14 …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/
Dtest_unit_entropy.c174 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/
Dstdlib_h.pass.cpp31 #ifndef RAND_MAX
32 #error RAND_MAX not defined
/external/ceres-solver/examples/
Drandom.h44 return r / RAND_MAX; in RandDouble()
/external/skia/tests/
DPathOpsCubicIntersectionTest.cpp462 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/
DTestSort.cpp108 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/
Drandom.h51 return r / RAND_MAX; in RandDouble()
/external/libcxx/test/std/language.support/support.runtime/
Dcstdlib.pass.cpp31 #ifndef RAND_MAX
32 #error RAND_MAX not defined
/external/srtp/crypto/replay/
Dut_sim.c53 return rand() > (RAND_MAX/2) ? -1 : 1; in ut_compar()
/external/fio/t/
Dstest.c34 size = 8 * sizeof(struct elem) + (int) (999.0 * (rand() / (RAND_MAX + 1.0))); in do_rand_allocs()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_test_main.c196 value = (double)rand()/(double)RAND_MAX; in random_elem()
240 return (float)((double)rand()/(double)RAND_MAX); in random_float()
/external/gptfdisk/
Dguid.cc163 uuidData[i] = (unsigned char) (256.0 * (rand() / (RAND_MAX + 1.0))); in Randomize()
/external/eigen/Eigen/src/Core/
DMathFunctions.h441 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/
Dm_debug_util.h264 GLfloat f = (GLfloat)rand() / (GLfloat)RAND_MAX; in rnd()

12