Skip to content

Commit

Permalink
Removed redundant test in atan2_q15 and q31
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe0606 committed Mar 6, 2024
1 parent 53e3e33 commit d08d9c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
11 changes: 2 additions & 9 deletions Source/FastMathFunctions/arm_atan2_q15.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* ----------------------------------------------------------------------
* 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
Expand Down Expand Up @@ -201,14 +201,7 @@ arm_status arm_atan2_q15(q15_t y,q15_t x,q15_t *result)
}
else
{
if (y<0)
{
*result= -PIQ13;
}
else
{
*result= PIQ13;
}
*result= PIQ13;
}
return(ARM_MATH_SUCCESS);
}
Expand Down
11 changes: 2 additions & 9 deletions Source/FastMathFunctions/arm_atan2_q31.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* ----------------------------------------------------------------------
* 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
Expand Down Expand Up @@ -201,14 +201,7 @@ arm_status arm_atan2_q31(q31_t y,q31_t x,q31_t *result)
}
else
{
if (y<0)
{
*result= -PIQ29;
}
else
{
*result= PIQ29;
}
*result= PIQ29;
}
return(ARM_MATH_SUCCESS);
}
Expand Down

0 comments on commit d08d9c4

Please sign in to comment.