Commit 1b9b114f authored by multrus's avatar multrus Committed by Manuel Jander
Browse files

Force 32by32 div Newton variant

parent a7b24381
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1013,6 +1013,10 @@ Word32 div_w( Word32 L_num, Word32 L_den )
Word32 BASOP_Util_Divide3232_Scale_cadence( Word32 x, Word32 y, Word16 *s )
{
    Word32 z;
#ifdef FORCE_DIV32_OPT_NEWTON
    z = BASOP_Util_Divide3232_Scale_newton( x, y, s );
    return z;
#else
    Word16 sx;
    Word16 sy;
    Word32 sign;
@@ -1060,6 +1064,7 @@ Word32 BASOP_Util_Divide3232_Scale_cadence( Word32 x, Word32 y, Word16 *s )
    }

    return z;
#endif
}

#ifdef DIV32_OPT_NEWTON
+1 −0
Original line number Diff line number Diff line
@@ -111,5 +111,6 @@
#define HARM_ENC_INIT
//#define HARM_SCE_INIT
#define DIV32_OPT_NEWTON                               /* FhG: faster 32 by 32 bit division */ 
#define FORCE_DIV32_OPT_NEWTON                         /* FhG: replace BASOP_Util_Divide3232_Scale_cadence() by BASOP_Util_Divide3232_Scale_newton() */

#endif