Home | History | Annotate | Download | only in fixed

Lines Matching defs:nrg

34 /* Residual energy: nrg = wxx - 2 * wXx * c + c' * wXX * c */
45 opus_int32 c_max, w_max, tmp, tmp2, nrg;
78 nrg = silk_RSHIFT( wxx, 1 + lshifts ) - tmp; /* Q: -lshifts - 1 */
91 nrg = silk_ADD_LSHIFT32( nrg, tmp2, lshifts ); /* Q: -lshifts - 1 */
94 if( nrg < 1 ) {
95 nrg = 1;
96 } else if( nrg > silk_RSHIFT( silk_int32_MAX, lshifts + 2 ) ) {
97 nrg = silk_int32_MAX >> 1;
99 nrg = silk_LSHIFT( nrg, lshifts + 1 ); /* Q0 */
101 return nrg;