Get rid of strict aliasing rule violations from libm (#3069)

JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu
This commit is contained in:
Csaba Osztrogonác
2019-10-01 14:37:18 +02:00
committed by Robert Fancsik
parent f7391a94ae
commit 3763ac8371
16 changed files with 246 additions and 197 deletions
+4 -2
View File
@@ -33,6 +33,8 @@
double
fabs (double x)
{
__HI (x) &= 0x7fffffff;
return x;
double_accessor ret;
ret.dbl = x;
ret.as_int.hi &= 0x7fffffff;
return ret.dbl;
} /* fabs */