Unverified Commit 3c36f203 authored by norvell's avatar norvell
Browse files

Fix compilation warning and literal in L_shl

parent 784f1c5c
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -476,7 +476,11 @@ void TDREND_SRC_REND_UpdateFiltersFromSpatialParams_fx(
        move32();
        set32_fx( hrf_left, 0, *filterlength );
        set32_fx( hrf_right, 0, *filterlength );
#ifdef FIX_BASOP_2023_TDREND_DISTATT_PRECISION
        hrf_left[0] = L_shr( L_add( L_shl( SrcSpatial_p->Pos_p_fx[1], sub( Q25, SrcSpatial_p->q_Pos_p ) ), ONE_IN_Q25 ), 1 ); // Q25
#else
        hrf_left[0] = L_shr( L_add( SrcSpatial_p->Pos_p_fx[1], ONE_IN_Q25 ), 1 ); // Q25
#endif
        move32();
        hrf_right[0] = L_sub( ONE_IN_Q25, hrf_left[0] ); // Q25
        move32();
+1 −1
Original line number Diff line number Diff line
@@ -164,7 +164,7 @@ ivas_error HeadRotationFileReading(
        pPos->y = min( max( -IVAS_LISTENER_POSITION_MAX, posy ), IVAS_LISTENER_POSITION_MAX );
        pPos->z = min( max( -IVAS_LISTENER_POSITION_MAX, posz ), IVAS_LISTENER_POSITION_MAX );

        maxAbsPos = max( max( fabs( pPos->x ), fabs( pPos->y ) ), fabs( pPos->z ) );
        maxAbsPos = max( max( fabsf( pPos->x ), fabsf( pPos->y ) ), fabsf( pPos->z ) );
        pPos->q_fact = float_to_fix_find_q( maxAbsPos );

        pPos->x_fx = floatToFixed_32( pPos->x, pPos->q_fact );