Skip to content

Commit

Permalink
Correct issue #165
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe0606 committed Mar 11, 2024
1 parent 77b7b09 commit 1d4a1b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/FastMathFunctions/arm_divide_q15.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ arm_status arm_divide_q15(q15_t numerator,

*shift = 0;

sign = (numerator>>15) ^ (denominator>>15);
sign = (numerator<0) ^ (denominator<0);

if (denominator == 0)
{
Expand Down
2 changes: 1 addition & 1 deletion Source/FastMathFunctions/arm_divide_q31.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ arm_status arm_divide_q31(q31_t numerator,

*shift = 0;

sign = (numerator>>31) ^ (denominator>>31);
sign = (numerator<0) ^ (denominator<0);

if (denominator == 0)
{
Expand Down

0 comments on commit 1d4a1b6

Please sign in to comment.