Commit a278b3f6 authored by thomas dettbarn's avatar thomas dettbarn
Browse files

replaced div5 with equivalent *26215 >> 17 (for real this time)

parent 88d023a3
Loading
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 = extract_l( L_shr( imult3216( 10923, bits ), 16 ) ); /* equivalent to bits/5 */
            nq_est = extract_l( L_shr( imult3216( 26215, bits ), 17 ) ); /* 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 = extract_l( L_shr( imult3216( 10923, tmp ), 16 ) ); /* equivalent to tmp/5 */
        nq_est = extract_l( L_shr( imult3216( 26215, tmp ), 17 ) ); /* equivalent to tmp/5 */
        IF( ( ( tmp % 5 ) != 0 ) )
        {
            nq_est = add( nq_est, 1 );