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
+5 -3
View File
@@ -123,9 +123,11 @@ ceil (double x)
i1 &= (~i);
}
}
__HI (x) = i0;
__LO (x) = i1;
return x;
double_accessor ret;
ret.as_int.hi = i0;
ret.as_int.lo = i1;
return ret.dbl;
} /* ceil */
#undef huge