Fixes math library compiling on msvc (#4511)

JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo luoyonggang@gmail.com
This commit is contained in:
Yonggang Luo
2021-02-04 20:19:13 +08:00
committed by GitHub
parent 9dbb594170
commit aa941ed58e
8 changed files with 40 additions and 21 deletions
+2 -2
View File
@@ -84,12 +84,12 @@ log10 (double x)
if (((hx & 0x7fffffff) | lx) == 0)
{
/* log(+-0)=-inf */
return -two54 / zero;
return -INFINITY;
}
if (hx < 0)
{
/* log(-#) = NaN */
return (x - x) / zero;
return NAN;
}
k -= 54;
x *= two54; /* subnormal number, scale up x */