Home
last modified time | relevance | path

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

/external/libopus/tests/
Dtest_opus_encode.c72 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()
245 rate=rates[j]+fast_rand()%rates[j]; in run_test1()
250 if((fast_rand()&255)==0) in run_test1()
254 if((fast_rand()&1)!=0) in run_test1()
256 … if(opus_decoder_ctl(dec_err[fast_rand()&1], OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
259 if((fast_rand()&127)==0) in run_test1()
261 if(opus_decoder_ctl(dec_err[fast_rand()&1], OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
263 if(fast_rand()%10==0){ in run_test1()
264 int complex=fast_rand()%11; 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()
240 int mode=fast_rand()%4; in test_decoder_code0()
244 t=fast_rand()%10; in test_decoder_code0()
260 mode=fast_rand()%3; in test_decoder_code0()
263 t=fast_rand()%10; in test_decoder_code0()
279 skip=fast_rand()%7; in test_decoder_code0()
288 for(jj=0;jj<j;jj++)packet[jj+1]=fast_rand()&255; in test_decoder_code0()
302 plen=(fast_rand()%18+3)*8+skip+3; in test_decoder_code0()
308 for(j=0;j<plen;j++)packet[j+1]=(fast_rand()|fast_rand())&255; in test_decoder_code0()
328 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