Commit 88d023a3 authored by thomas dettbarn's avatar thomas dettbarn
Browse files

replaced div5 with equivalent *26215 >> 17

parent d37101d7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -188,7 +188,7 @@ void AVQ_demuxdec_fx(
                    nullVec = add( nullVec, 1 );
                }
            }
            nq_est = idiv1616( bits, 5 );
            nq_est = extract_l( L_shr( imult3216( 10923, bits ), 16 ) ); /* equivalent to bits/5 */
            test();
            test();
            test();
@@ -269,7 +269,7 @@ void AVQ_demuxdec_fx(

        /*Compute AVQ code book number from unused Bits */
        tmp = (Word16) ( sub( bits, add( add( shl( add( unusedbitsFlag, unused_bits_idx ), 2 ), unusedbitsFlag ), unused_bits_idx ) ) );
        nq_est = idiv1616( tmp, 5 );
        nq_est = extract_l( L_shr( imult3216( 10923, tmp ), 16 ) ); /* equivalent to tmp/5 */
        IF( ( ( tmp % 5 ) != 0 ) )
        {
            nq_est = add( nq_est, 1 );