OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:RAND_MAX
(Results
26 - 50
of
117
) sorted by null
1
2
3
4
5
/external/libopus/celt/tests/
test_unit_entropy.c
174
ft=rand()/((
RAND_MAX
>>(rand()%11U))+1U)+10;
175
sz=rand()/((
RAND_MAX
>>(rand()%9U))+1U);
235
sz=rand()/((
RAND_MAX
>>(rand()%9U))+1U);
243
data[j]=rand()/((
RAND_MAX
>>1)+1);
245
enc_method[j]=rand()/((
RAND_MAX
>>2)+1);
282
dec_method=rand()/((
RAND_MAX
>>2)+1);
/external/ltp/testcases/network/stress/ns-tools/
ns-icmpv4_sender.c
442
rand_val = rand() / ((
RAND_MAX
+ 1U) / 16);
450
rand_val = rand() / ((
RAND_MAX
+ 1U) / 3);
458
rand_val = rand() / ((
RAND_MAX
+ 1U) / 3);
466
rand_val = rand() / ((
RAND_MAX
+ 1U) / 3);
478
rand_val = rand() / ((
RAND_MAX
+ 1U) / 5);
498
rand() / ((
RAND_MAX
+ 1U) / 0x100);
ns-common.c
196
* last : Last value of the range. If bigger than
RAND_MAX
, assumed
RAND_MAX
207
last =
RAND_MAX
< (unsigned int)last ?
RAND_MAX
: last;
210
rand_val = rand() / ((
RAND_MAX
+ 1U) / num) + first;
232
rand_val = rand() / ((
RAND_MAX
+ 1U) / (bitsize + oversize));
/external/libcxx/test/std/depr/depr.c.headers/
stdlib_h.pass.cpp
61
#ifndef
RAND_MAX
62
#error
RAND_MAX
not defined
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/depr/depr.c.headers/
stdlib_h.pass.cpp
61
#ifndef
RAND_MAX
62
#error
RAND_MAX
not defined
/external/autotest/client/deps/glbench/src/
trianglesetuptest.cc
88
RAND_MAX
/ 2);
/external/libmicrohttpd/src/testcurl/https/
test_https_get_parallel_threads.c
63
usleep ((useconds_t) 10.0 * ((double) rand ()) / ((double)
RAND_MAX
));
test_https_get_parallel.c
62
usleep ((useconds_t) 10.0 * ((double) rand ()) / ((double)
RAND_MAX
));
/external/ltp/testcases/kernel/ipc/semaphore/
sem01.c
81
delay = 1 + ((100.0 * rand()) /
RAND_MAX
);
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/
23-1.c
75
msec = (int)(20.0 * rand() /
RAND_MAX
);
/external/syslinux/com32/include/
stdlib.h
68
#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
;
/cts/suite/audio_quality/lib/src/audio/
AudioSignalFactory.cpp
54
int middle =
RAND_MAX
/ 2;
/device/linaro/bootloader/edk2/StdLib/Include/
stdlib.h
14
RAND_MAX
The maximum value returned by the rand function.
163
#define
RAND_MAX
0x7fffffff
578
range 0 to
RAND_MAX
.
[
all
...]
/external/ltp/testcases/kernel/mem/mem/
mem01.c
224
rand() / (
RAND_MAX
+ 1.0));
mem02.c
204
size = (int)((rand() / (float)
RAND_MAX
) * 100000) + 1;
/external/ltp/testcases/kernel/mem/mtest06/
mmap3.c
65
*size = (1 + (int)(1000.0 * rand() / (
RAND_MAX
+ 1.0))) * 4096;
/external/ltp/tools/pounder21/src/cpufreq/
cpufreq.c
70
return (unsigned int)((float)max * (rand() / (
RAND_MAX
+ 1.0)));
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
lmathlib.c
200
some systems (SunOS!) `rand()' may return a value larger than
RAND_MAX
*/
201
lua_Number r = (lua_Number)(rand()%
RAND_MAX
) / (lua_Number)
RAND_MAX
;
/external/libcxx/test/std/language.support/support.runtime/
cstdlib.pass.cpp
38
#ifndef
RAND_MAX
39
#error
RAND_MAX
not defined
/external/syslinux/com32/lua/src/
lmathlib.c
200
some systems (SunOS!) `rand()' may return a value larger than
RAND_MAX
*/
201
lua_Number r = (lua_Number)(rand()%
RAND_MAX
) / (lua_Number)
RAND_MAX
;
/external/webrtc/webrtc/system_wrappers/test/TestSort/
TestSort.cc
109
double floatRand = static_cast<double>(rand()) /
RAND_MAX
;
123
return static_cast<Type>((static_cast<Type>(rand()) /
RAND_MAX
) - 0.5);
/external/webrtc/webrtc/test/
fake_network_pipe.cc
28
double uniform1 = (rand() + 1.0) / (
RAND_MAX
+ 1.0); // NOLINT
29
double uniform2 = (rand() + 1.0) / (
RAND_MAX
+ 1.0); // NOLINT
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/language.support/support.runtime/
cstdlib.pass.cpp
38
#ifndef
RAND_MAX
39
#error
RAND_MAX
not defined
/bionic/tests/headers/posix/
stdlib_h.c
37
MACRO(
RAND_MAX
);
Completed in 695 milliseconds
1
2
3
4
5