Lines Matching refs:SNR_SHIFT
145 #define SNR_SHIFT 8 macro
164 #define SNR_SHIFT 0 macro
305 …n ADD32(EXTEND32(Q15_ONE),EXTEND32(DIV32_16(QCONST32(.1296,23), SHR32(xx,EXPIN_SHIFT-SNR_SHIFT)))); in hypergeom_gain()
487 st->post[i]=SHL16(1, SNR_SHIFT); in speex_preprocess_state_init()
488 st->prior[i]=SHL16(1, SNR_SHIFT); in speex_preprocess_state_init()
796 st->post[i] = SUB16(DIV32_16_Q8(ps[i],tot_noise), QCONST16(1.f,SNR_SHIFT)); in speex_preprocess_run()
797 st->post[i]=MIN16(st->post[i], QCONST16(100.f,SNR_SHIFT)); in speex_preprocess_run()
804 st->prior[i]=MIN16(st->prior[i], QCONST16(100.f,SNR_SHIFT)); in speex_preprocess_run()
846 …rior_ratio = PDIV32_16(SHL32(EXTEND32(st->prior[i]), 15), ADD16(st->prior[i], SHL32(1,SNR_SHIFT))); in speex_preprocess_run()
847 …_32_P15(prior_ratio, QCONST32(1.f,EXPIN_SHIFT)+SHL32(EXTEND32(st->post[i]),EXPIN_SHIFT-SNR_SHIFT)); in speex_preprocess_run()
859 /*Q8*/tmp = MULT16_16_Q15((SHL32(1,SNR_SHIFT)+st->prior[i]),EXTRACT16(MIN32(Q15ONE,SHR32(spx_exp(-E… in speex_preprocess_run()
860 tmp = MIN16(QCONST16(3.,SNR_SHIFT), tmp); /* Prevent overflows in the next line*/ in speex_preprocess_run()
862 st->gain2[i]=DIV32_16(SHL32(EXTEND32(32767),SNR_SHIFT), ADD16(256,tmp)); in speex_preprocess_run()
887 …rior_ratio = PDIV32_16(SHL32(EXTEND32(st->prior[i]), 15), ADD16(st->prior[i], SHL32(1,SNR_SHIFT))); in speex_preprocess_run()
888 …_32_P15(prior_ratio, QCONST32(1.f,EXPIN_SHIFT)+SHL32(EXTEND32(st->post[i]),EXPIN_SHIFT-SNR_SHIFT)); in speex_preprocess_run()