mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
Revert "libs/libm: fix epsilon relaxation in log and logf"
This reverts commit a2ed0ddd72.
This commit is contained in:
committed by
Xiang Xiao
parent
c45e4ac440
commit
9cfb10069c
@@ -98,7 +98,7 @@ double log(double x)
|
|||||||
iter = 0;
|
iter = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (iter == 0)
|
if (relax_factor > 1.0)
|
||||||
{
|
{
|
||||||
epsilon *= relax_factor;
|
epsilon *= relax_factor;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ float logf(float x)
|
|||||||
iter = 0;
|
iter = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (iter == 0)
|
if (relax_factor > 1.0F)
|
||||||
{
|
{
|
||||||
epsilon *= relax_factor;
|
epsilon *= relax_factor;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user