HomeSort by relevance Sort by last modified time
    Searched refs:RAND_MAX (Results 1 - 25 of 108) sorted by null

1 2 3 4 5

  /external/eigen/bench/btl/generic_bench/init/
init_function.hh 35 return std::rand()/double(RAND_MAX);
40 return std::rand()/double(RAND_MAX);
  /external/compiler-rt/lib/tsan/lit_tests/
static_init1.cc 13 if (p.x > RAND_MAX || p.y > RAND_MAX)
static_init2.cc 15 if (c->x >= RAND_MAX)
static_init3.cc 34 if (c->x >= RAND_MAX)
static_init5.cc 28 if (c->x >= RAND_MAX)
static_init6.cc 28 if (c->x >= RAND_MAX)
  /system/core/libcutils/
ashmem-host.c 50 txt[(int) ((sizeof(txt) - 1) * (rand() / (RAND_MAX + 1.0)))],
51 txt[(int) ((sizeof(txt) - 1) * (rand() / (RAND_MAX + 1.0)))],
52 txt[(int) ((sizeof(txt) - 1) * (rand() / (RAND_MAX + 1.0)))],
53 txt[(int) ((sizeof(txt) - 1) * (rand() / (RAND_MAX + 1.0)))],
54 txt[(int) ((sizeof(txt) - 1) * (rand() / (RAND_MAX + 1.0)))],
55 txt[(int) ((sizeof(txt) - 1) * (rand() / (RAND_MAX + 1.0)))],
56 txt[(int) ((sizeof(txt) - 1) * (rand() / (RAND_MAX + 1.0)))],
57 txt[(int) ((sizeof(txt) - 1) * (rand() / (RAND_MAX + 1.0)))]);
  /external/srtp/crypto/include/
kernel_compat.h 69 #define RAND_MAX 32767
75 return temp % (RAND_MAX+1);
  /external/ceres-solver/internal/ceres/
random.h 51 return r / RAND_MAX;
  /frameworks/av/libvideoeditor/osal/src/
M4OSA_Random.c 85 (*out_value) = (((*out_value) * max_value) / ((M4OSA_UInt32)RAND_MAX + 1)) + 1;
  /external/chromium/sdch/open-vcdiff/src/
testing.h 165 double rand_limit = RAND_MAX; // The maximum possible value
167 // value is multiplied by (RAND_MAX + 1) each iteration. This factor will be
169 value = (value * (static_cast<uint64_t>(RAND_MAX) + 1)) + rand();
170 rand_limit = (rand_limit * (RAND_MAX + 1.0)) + RAND_MAX;
  /external/open-vcdiff/src/
testing.h 165 double rand_limit = RAND_MAX; // The maximum possible value
167 // value is multiplied by (RAND_MAX + 1) each iteration. This factor will be
169 value = (value * (static_cast<uint64_t>(RAND_MAX) + 1)) + rand();
170 rand_limit = (rand_limit * (RAND_MAX + 1.0)) + RAND_MAX;
  /frameworks/base/cmds/interrupter/
interrupter.c 41 static int probability = PROBABILITY * RAND_MAX;
  /external/webkit/Source/JavaScriptCore/wtf/
RandomNumber.cpp 86 uint32_t part1 = rand() & (RAND_MAX - 1);
87 uint32_t part2 = rand() & (RAND_MAX - 1);
  /external/srtp/crypto/replay/
ut_sim.c 53 return rand() > (RAND_MAX/2) ? -1 : 1;
  /external/libvorbis/examples/
seeking_example.c 138 ogg_int64_t val=(double)rand()/RAND_MAX*length;
157 ogg_int64_t val=(double)rand()/RAND_MAX*pcmlength;
176 ogg_int64_t val=(double)rand()/RAND_MAX*pcmlength;
200 double val=(double)rand()/RAND_MAX*timelength;
219 double val=(double)rand()/RAND_MAX*timelength;
  /external/eigen/unsupported/doc/examples/
FFT.cpp 64 vec[k] = T( rand() )/T(RAND_MAX) - .5;
71 vec[k] = std::complex<T> ( T( rand() )/T(RAND_MAX) - .5, T( rand() )/T(RAND_MAX) - .5);
  /frameworks/av/media/libstagefright/rtsp/
VideoSource.h 70 char x = (char)((double)rand() / RAND_MAX * 255);
  /external/eigen/unsupported/test/
FFTW.cpp 14 std::complex<T> RandomCpx() { return std::complex<T>( (T)(rand()/(T)RAND_MAX - .5), (T)(rand()/(T)RAND_MAX - .5) ); }
92 tbuf[k]= (T)( rand()/(double)RAND_MAX - .5);
155 inbuf[k]= Complex( (T)(rand()/(double)RAND_MAX - .5), (T)(rand()/(double)RAND_MAX - .5) );
  /external/srec/tools/thirdparty/OpenFst/fst/lib/
randgen.h 49 double r = rand()/(RAND_MAX + 1.0);
79 double r = rand()/(RAND_MAX + 1.0);
  /ndk/sources/cxx-stl/llvm-libc++/test/depr/depr.c.headers/
stdlib_h.pass.cpp 31 #ifndef RAND_MAX
32 #error RAND_MAX not defined
  /development/ndk/platforms/android-3/include/
stdlib.h 115 #define RAND_MAX 0x7fffffff
  /development/ndk/platforms/android-8/include/
stdlib.h 116 #define RAND_MAX 0x7fffffff
  /development/ndk/platforms/android-9/include/
stdlib.h 116 #define RAND_MAX 0x7fffffff
  /frameworks/native/opengl/tests/gl_perf/
fill_common.cpp 194 float x = ((float)rand()) / RAND_MAX;
195 float y = ((float)rand()) / RAND_MAX;
196 float z = ((float)rand()) / RAND_MAX;
197 float w = ((float)rand()) / RAND_MAX;

Completed in 333 milliseconds

1 2 3 4 5