Commit 63508c68 authored by Mohammadreza Naghibzadeh's avatar Mohammadreza Naghibzadeh
Browse files

round |elevation| with anint_fx before the 90deg subtraction in add_vertex_fx

parent 76c121e6
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -101,6 +101,7 @@
#define NONBE_FIX2614_LP_CNG_ASSERT                     /* FhG: */
#define FIX_FLOAT_1600_OMASA_WRONG_RENDER_PATH          /* Nokia: float issue 1600: fix initialization condition of stereo type detection for OMASA */
#define FIX_BASOP_1765_MASA1TC_CNG_MISMATCH             /* Nokia: BASOP issue 1765: Improve accuracy of FD CNG noise estimation */
#define FIX_BASOP_2635_EFAP_ADD_VERTEX_ELE_ROUND        /* FhG: BASOP #2635: round |elevation| with anint_fx before the 90deg subtraction in add_vertex_fx */

/* ##################### End NON-BE switches ########################### */

+5 −0
Original line number Diff line number Diff line
@@ -1696,8 +1696,13 @@ static void add_vertex_fx(

    /* IdxEleTmp */
    tmp = L_abs( vtxArray[pos].ele ); // q22
#ifdef FIX_BASOP_2635_EFAP_ADD_VERTEX_ELE_ROUND
    idxEleTmp = anint_fx( tmp, Q22 ); // q22
    move32();
#else
    idxEleTmp = tmp;                  // q22
    move16();
#endif
    idxEleTmp = L_sub( Q22_90_DEG /*90 q22*/, idxEleTmp ); // q22

    /* Final Idx */