Fixes math library compiling on msvc (#4511)
JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo luoyonggang@gmail.com
This commit is contained in:
+2
-2
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user