Skip to content

Commit

Permalink
Correct bug #164
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe0606 committed Mar 6, 2024
1 parent a4e82f8 commit 0d49aa6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Source/FastMathFunctions/arm_sqrt_q15.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,14 @@ arm_status arm_sqrt_q15(
{
*pOut = 0;

return (ARM_MATH_ARGUMENT_ERROR);
if (number==0)
{
return (ARM_MATH_SUCCESS);
}
else
{
return (ARM_MATH_ARGUMENT_ERROR);
}
}
}

Expand Down
9 changes: 8 additions & 1 deletion Source/FastMathFunctions/arm_sqrt_q31.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,14 @@ arm_status arm_sqrt_q31(
{
*pOut = 0;

return (ARM_MATH_ARGUMENT_ERROR);
if (number==0)
{
return (ARM_MATH_SUCCESS);
}
else
{
return (ARM_MATH_ARGUMENT_ERROR);
}
}
}

Expand Down

0 comments on commit 0d49aa6

Please sign in to comment.