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:
committed by
Robert Fancsik
parent
f7391a94ae
commit
3763ac8371
@@ -34,6 +34,8 @@
|
||||
double
|
||||
copysign (double x, double y)
|
||||
{
|
||||
__HI (x) = (__HI (x) & 0x7fffffff) | (__HI (y) & 0x80000000);
|
||||
return x;
|
||||
double_accessor ret;
|
||||
ret.dbl = x;
|
||||
ret.as_int.hi = (__HI (x) & 0x7fffffff) | (__HI (y) & 0x80000000);
|
||||
return ret.dbl;
|
||||
} /* copysign */
|
||||
|
||||
Reference in New Issue
Block a user