Home
last modified time | relevance | path

Searched refs:prng (Results 1 – 25 of 50) sorted by relevance

12

/third_party/pixman/test/
Dprng-test.c64 prng_t prng; in bench() local
67 prng_srand_r (&prng, 1234); in bench()
70 prng_randmemset_r (&prng, buf, BUFSIZE, 0); in bench()
77 prng_randmemset_r (&prng, buf + 1, BUFSIZE, 0); in bench()
85 prng_randmemset_r (&prng, buf, BUFSIZE, RANDMEMSET_MORE_00_AND_FF); in bench()
94 prng_randmemset_r (&prng, buf + 1, BUFSIZE, RANDMEMSET_MORE_00_AND_FF); in bench()
119 prng_t prng; in main() local
130 prng_srand_r (&prng, 0); in main()
131 assert (ranval (&x) == prng_rand_r (&prng)); in main()
135 prng_srand_r (&prng, seed); in main()
[all …]
Dutils-prng.c102 randmemset_internal (prng_t *prng, in randmemset_internal() argument
108 prng_t local_prng = *prng; in randmemset_internal()
274 *prng = local_prng; in randmemset_internal()
285 void prng_randmemset_r (prng_t *prng, in prng_randmemset_r() argument
295 randmemset_internal (prng, buf, size, 0, 0); in prng_randmemset_r()
297 randmemset_internal (prng, buf, size, RANDMEMSET_MORE_00_AND_FF, 0); in prng_randmemset_r()
299 randmemset_internal (prng, buf, size, flags, 0); in prng_randmemset_r()
305 randmemset_internal (prng, buf, size, 0, 1); in prng_randmemset_r()
307 randmemset_internal (prng, buf, size, RANDMEMSET_MORE_00_AND_FF, 1); in prng_randmemset_r()
309 randmemset_internal (prng, buf, size, flags, 1); in prng_randmemset_r()
DMakefile.sources10 prng-test \
50 utils-prng.c \
55 utils-prng.h \
Dutils-prng.h162 void prng_srand_r (prng_t *prng, uint32_t seed);
165 void prng_randmemset_r (prng_t *prng,
Dmeson.build29 'prng-test',
72 ['utils.c', 'utils-prng.c', config_h],
/third_party/ffmpeg/libavutil/tests/
Dpca.c35 AVLFG prng; in main() local
37 av_lfg_init(&prng, 1); in main()
44 int pos = av_lfg_get(&prng) % LEN; in main()
45 int v2 = av_lfg_get(&prng) % 101 - 50; in main()
46 v[0] = av_lfg_get(&prng) % 101 - 50; in main()
Dtree.c67 AVLFG prng; in main() local
72 av_lfg_init(&prng, 1); in main()
75 intptr_t j = av_lfg_get(&prng) % 86294; in main()
92 j = av_lfg_get(&prng) % 86294; in main()
Daes.c76 AVLFG prng; in main() local
89 av_lfg_init(&prng, 1); in main()
93 pt[j] = av_lfg_get(&prng); in main()
95 iv[0][j] = iv[1][j] = av_lfg_get(&prng); in main()
/third_party/ffmpeg/libavcodec/tests/
Ddct.c119 static void init_block(int16_t block[64], int test, int is_idct, AVLFG *prng, int vals) in init_block() argument
128 block[i] = (av_lfg_get(prng) % (2*vals)) -vals; in init_block()
136 j = av_lfg_get(prng) % 10 + 1; in init_block()
138 int idx = av_lfg_get(prng) % 64; in init_block()
139 block[idx] = av_lfg_get(prng) % (2*vals) -vals; in init_block()
143 block[ 0] = av_lfg_get(prng) % (16*vals) - (8*vals); in init_block()
189 AVLFG prng; in dct_error() local
194 av_lfg_init(&prng, 1); in dct_error()
201 init_block(block1, test, is_idct, &prng, vals); in dct_error()
270 init_block(block, test, is_idct, &prng, vals); in dct_error()
[all …]
Djpeg2000dwt.c112 AVLFG prng; in main() local
117 av_lfg_init(&prng, 1); in main()
120 arrayf[i] = reff[i] = array[i] = ref[i] = av_lfg_get(&prng) % 2048; in main()
124 border[j>>1][j&1] = av_lfg_get(&prng) % MAX_W; in main()
127 decomp_levels = av_lfg_get(&prng) % FF_DWT_MAX_DECLVLS; in main()
Dcabac.c145 AVLFG prng; in main() local
147 av_lfg_init(&prng, 1); in main()
151 if(2*i<SIZE) r[i] = av_lfg_get(&prng) % 7; in main()
164 b[i++] = av_lfg_get(&prng); in main()
165 b[i ] = av_lfg_get(&prng); in main()
Drangecoder.c62 AVLFG prng; in main() local
64 av_lfg_init(&prng, 1); in main()
73 r[i] = av_lfg_get(&prng) % 7; in main()
Dsnowenc.c36 AVLFG prng; in main() local
48 av_lfg_init(&prng, 1); in main()
52 buffer[0][i] = buffer[1][i] = av_lfg_get(&prng) % 54321 - 12345; in main()
63 buffer[0][i] = buffer[1][i] = av_lfg_get(&prng) % 54321 - 12345; in main()
Dmotion.c48 AVLFG prng; in fill_random() local
50 av_lfg_init(&prng, 1); in fill_random()
52 tab[i] = av_lfg_get(&prng) % 256; in fill_random()
Dfft.c198 static FFTSample frandom(AVLFG *prng) in frandom() argument
200 return (int16_t) av_lfg_get(prng) / 32768.0 * RANGE; in frandom()
390 AVLFG prng; in main() local
402 av_lfg_init(&prng, 1); in main()
506 tab1[i].re = frandom(&prng); in main()
507 tab1[i].im = frandom(&prng); in main()
/third_party/ffmpeg/libavdevice/tests/
Dtimefilter.c30 AVLFG prng; in main() local
43 av_lfg_init(&prng, 123); in main()
45 samplet[i] = 10 + i + (av_lfg_get(&prng) < LFG_MAX/2 ? 0 : 0.999); in main()
47 samples[i] = ideal[i] + n0 * (av_lfg_get(&prng) - LFG_MAX / 2) / (LFG_MAX * 10LL); in main()
/third_party/typescript/tests/baselines/reference/user/
Dbcryptjs.log20 node_modules/bcryptjs/src/bcrypt/prng/accum.js(51,74): error TS2339: Property 'attachEvent' does no…
21 node_modules/bcryptjs/src/bcrypt/prng/accum.js(52,22): error TS2339: Property 'attachEvent' does no…
22 node_modules/bcryptjs/src/bcrypt/prng/accum.js(53,22): error TS2339: Property 'attachEvent' does no…
23 node_modules/bcryptjs/src/bcrypt/prng/accum.js(65,74): error TS2339: Property 'detachEvent' does no…
24 node_modules/bcryptjs/src/bcrypt/prng/accum.js(66,22): error TS2339: Property 'detachEvent' does no…
25 node_modules/bcryptjs/src/bcrypt/prng/accum.js(67,22): error TS2339: Property 'detachEvent' does no…
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DMetaRenamer.cpp62 prng.srand(seed); in Renamer()
66 return metaNames[prng.rand() % array_lengthof(metaNames)]; in newName()
69 PRNG prng; member
/third_party/boost/libs/random/doc/
Dgenerators.qbk9 This library provides several [prng pseudo-random number generators]. The
10 quality of a [prng pseudo random number generator] crucially depends on both
16 [prng Pseudo-random number generators] should not be constructed (initialized)
24 When the [prng pseudo-random number generator] is initialized again with the
31 Note that all [prng pseudo-random number generators] described below are
Dutilities.qbk11 [[__seed_seq] [Used to seed [prng Random Engines]]]
/third_party/pixman/demos/
DMakefile.am18 ../test/utils-prng.c ../test/utils-prng.h
/third_party/openssl/test/recipes/95-test_external_krb5_data/
Dkrb5.sh16 ./configure --with-ldap --with-prng-alg=os --enable-pkinit \
/third_party/boost/libs/beast/test/beast/websocket/
D_detail_prng.cpp71 BEAST_DEFINE_TESTSUITE(beast,websocket,prng);
/third_party/ffmpeg/libavfilter/
Dvf_drawtext.c195 AVLFG prng; ///< random member
430 size = av_expr_eval(s->fontsize_pexpr, s->var_values, &s->prng); in update_fontsize()
499 double size = av_expr_eval(s->fontsize_pexpr, s->var_values, &s->prng); in load_font_fontconfig()
853 av_lfg_init(&s->prng, av_get_random_seed()); in config_input()
1036 &s->prng, 0, ctx); in func_eval_expr()
1065 &s->prng, 0, ctx); in func_eval_expr_int_format()
1273 double alpha = av_expr_eval(s->a_pexpr, s->var_values, &s->prng); in update_alpha()
1443 s->x = s->var_values[VAR_X] = av_expr_eval(s->x_pexpr, s->var_values, &s->prng); in draw_text()
1444 s->y = s->var_values[VAR_Y] = av_expr_eval(s->y_pexpr, s->var_values, &s->prng); in draw_text()
1446 s->x = s->var_values[VAR_X] = av_expr_eval(s->x_pexpr, s->var_values, &s->prng); in draw_text()
/third_party/musl/libc-test/src/functionalext/supplement/prng/
DBUILD.gn19 target_dir = "functionalext/supplement/prng"

12