Commit 7604571b authored by multrus's avatar multrus
Browse files

[cleanup] accept FIX_2398_PRECISSION_ORIENTATION_TRACKING

parent c56b8994
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -94,7 +94,6 @@
/* #################### Start NON-BE switches ############################ */
/* any switch which is non-be wrt. TS 26.251 V3.0 */

#define FIX_2398_PRECISSION_ORIENTATION_TRACKING        /* FhG: use refinement of Sqrt32 within certain functions*/
#define FIX_BASOP_2486_HQ_FINE_GAIN_ALIGNMENT           /* Eri: Basop issue 2486: IVAS BASOP used calculations with truncation, EVS BASOP used rounding. This aligns the use of a table lookup. */
#define FIX_1543_MID_LSF_BITS                           /* VA: float issue 1543: Resolve "MSAN: use-of-uninitialized-value in lib_enc/lsf_enc.c:262:5 for EVS encoder" */
#define FIX_2488_PREVENT_NEG_PITCH                      /* VA: Fix for 2488, use saturation to prevent possible wrap-around, thus negative pitch values */
+0 −10
Original line number Diff line number Diff line
@@ -52,7 +52,6 @@
 * Local functions
 *------------------------------------------------------------------------------------------*/

#ifdef FIX_2398_PRECISSION_ORIENTATION_TRACKING
/*------------------------------------------------------------------------------------------*
 * Sqrt32 with Newton-Raphson Correction
 *
@@ -88,7 +87,6 @@ static Word32 Sqrt32_NewtonRaphson( Word32 mantissa, Word16 *e, Word16 n )
    move32();
    return result_fx_0;
}
#endif

/*------------------------------------------------------------------------------------------*
 * IdentityQuaternion()
@@ -229,11 +227,7 @@ static void QuaternionNormalize_fx(
    Word32 sqrt_fx;
    Word32 dot_prod_fx = QuaternionDotProduct_fx( q_fx, q_fx, &q_dot );
    sqrt_e = sub( Q31, q_dot );
#ifdef FIX_2398_PRECISSION_ORIENTATION_TRACKING
    sqrt_fx = Sqrt32_NewtonRaphson( dot_prod_fx, &sqrt_e, 1 );
#else
    sqrt_fx = Sqrt32( dot_prod_fx, &sqrt_e );
#endif
    QuaternionDivision_fx( q_fx, sqrt_fx, r_fx, sqrt_e );
    return;
}
@@ -528,11 +522,7 @@ static Word32 VectorLength_fx(
    Word32 result_fx;
    result_fx = Madd_32_32( Madd_32_32( Mpy_32_32( p.x_fx, p.x_fx ), p.y_fx, p.y_fx ), p.z_fx, p.z_fx );
    sqrt_e = shl( sub( 31, p.q_fact ), 1 ); /* convert Q to E */
#ifndef FIX_2398_PRECISSION_ORIENTATION_TRACKING
    result_fx = Sqrt32( result_fx, &sqrt_e );
#else
    result_fx = Sqrt32_NewtonRaphson( result_fx, &sqrt_e, 1 );
#endif
    *q_fact = sub( 31, sqrt_e ); /* back to Q again */
    move16();
    return result_fx;