Commit 729bdcc9 authored by sekine's avatar sekine
Browse files

Fixed the abs bug

parent 07d4ec1a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -655,7 +655,7 @@ static void calc_poc_fx(
        ELSE
        {
#ifdef FIX_1764_ABS
            IF(GT_32(L_abs(Mpy_32_16_1(specPOi[i], 13573 /*0.414213f*/)), L_abs(specPOr[i]))) /*tan(PI/8)*/
            IF(GT_32(L_abs(specPOr[i]), L_abs(Mpy_32_16_1(specPOi[i], 13573 /*0.414213f*/)))) /*tan(PI/8)*/
#else
            IF( W_mult0_32_32( L_sub( specPOr[i], Mpy_32_16_1( specPOi[i], 13573 /*0.414213f*/ ) ), L_add( specPOr[i], Mpy_32_16_1( specPOi[i], 13573 /*0.414213f*/ ) ) ) > 0 ) /*tan(PI/8)*/
#endif