Commit d08d9c4d authored by Christophe Favergeon's avatar Christophe Favergeon
Browse files

Removed redundant test in atan2_q15 and q31

parent 53e3e33a
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
/* ----------------------------------------------------------------------
 * Project:      CMSIS DSP Library
 * Title:        arm_atan2_q15.c
 * Description:  float32 Arc tangent of y/x
 * Description:  q15 Arc tangent of y/x
 *
 * $Date:        22 April 2022
 * $Revision:    V1.10.0
@@ -200,16 +200,9 @@ arm_status arm_atan2_q15(q15_t y,q15_t x,q15_t *result)
           *result=arm_atan_q15(y,x) - PIQ13;
        }
        else
        {
            if (y<0)
            {
               *result= -PIQ13;
            }
            else
        {
            *result= PIQ13;
        }
        }
        return(ARM_MATH_SUCCESS);
    }
    if (x == 0)
+2 −9
Original line number Diff line number Diff line
/* ----------------------------------------------------------------------
 * Project:      CMSIS DSP Library
 * Title:        arm_atan2_q31.c
 * Description:  float32 Arc tangent of y/x
 * Description:  q31 Arc tangent of y/x
 *
 * $Date:        22 April 2022
 * $Revision:    V1.10.0
@@ -200,16 +200,9 @@ arm_status arm_atan2_q31(q31_t y,q31_t x,q31_t *result)
           *result=arm_atan_q31(y,x) - PIQ29;
        }
        else
        {
            if (y<0)
            {
               *result= -PIQ29;
            }
            else
        {
           *result= PIQ29;
        }
        }
        return(ARM_MATH_SUCCESS);
    }
    if (x == 0)