diff --git a/libs/libm/libm/lib_log.c b/libs/libm/libm/lib_log.c index 5bf3c679481aa..9b8e23b97d477 100644 --- a/libs/libm/libm/lib_log.c +++ b/libs/libm/libm/lib_log.c @@ -98,7 +98,7 @@ double log(double x) iter = 0; } - if (iter == 0) + if (relax_factor > 1.0) { epsilon *= relax_factor; } diff --git a/libs/libm/libm/lib_logf.c b/libs/libm/libm/lib_logf.c index 3cf050bca01da..35672915b44e3 100644 --- a/libs/libm/libm/lib_logf.c +++ b/libs/libm/libm/lib_logf.c @@ -94,7 +94,7 @@ float logf(float x) iter = 0; } - if (iter == 0) + if (relax_factor > 1.0F) { epsilon *= relax_factor; }