Skip to content

Commit

Permalink
Revert "libs/libm: fix epsilon relaxation in log and logf"
Browse files Browse the repository at this point in the history
This reverts commit a2ed0dd.
  • Loading branch information
pkarashchenko committed Sep 5, 2024
1 parent da6ddea commit 06f59e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/libm/libm/lib_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ double log(double x)
iter = 0;
}

if (iter == 0)
if (relax_factor > 1.0)
{
epsilon *= relax_factor;
}
Expand Down
2 changes: 1 addition & 1 deletion libs/libm/libm/lib_logf.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ float logf(float x)
iter = 0;
}

if (iter == 0)
if (relax_factor > 1.0F)
{
epsilon *= relax_factor;
}
Expand Down

0 comments on commit 06f59e6

Please sign in to comment.