Home
last modified time | relevance | path

Searched refs:fast_rand (Results 1 – 4 of 4) sorted by relevance

/external/libopus/tests/
Dtest_opus_encode.c55 #define RAND_SAMPLE(a) (a[fast_rand() % sizeof(a)/sizeof(a[0])])
72 r=fast_rand();v1+=r&65535;v1-=r>>16; in generate_music()
73 r=fast_rand();v2+=r&65535;v2-=r>>16; in generate_music()
403 rate=rates[j]+fast_rand()%rates[j]; in run_test1()
408 if((fast_rand()&255)==0) in run_test1()
412 if((fast_rand()&1)!=0) in run_test1()
414 … if(opus_decoder_ctl(dec_err[fast_rand()&1], OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
417 if((fast_rand()&127)==0) in run_test1()
419 if(opus_decoder_ctl(dec_err[fast_rand()&1], OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
421 if(fast_rand()%10==0){ in run_test1()
[all …]
Dtest_opus_decode.c125 out_samples = opus_decode(dec[t], 0, fast_rand(), outbuf, 120/factor, fec); in test_decoder_code0()
247 int mode=fast_rand()%4; in test_decoder_code0()
251 t=fast_rand()%10; in test_decoder_code0()
267 mode=fast_rand()%3; in test_decoder_code0()
270 t=fast_rand()%10; in test_decoder_code0()
286 skip=fast_rand()%7; in test_decoder_code0()
295 for(jj=0;jj<j;jj++)packet[jj+1]=fast_rand()&255; in test_decoder_code0()
309 plen=(fast_rand()%18+3)*8+skip+3; in test_decoder_code0()
315 for(j=0;j<plen;j++)packet[j+1]=(fast_rand()|fast_rand())&255; in test_decoder_code0()
335 plen=(fast_rand()%18+3)*8+skip+3; in test_decoder_code0()
[all …]
Dtest_opus_common.h57 static OPUS_INLINE opus_uint32 fast_rand(void) in fast_rand() function
Dtest_opus_projection.c270 r=fast_rand();v+=r&65535;v-=r>>16; in generate_music()