Fix an aliasing bug which was finally detected by gcc-4.2. fdlibm has

hundreds of similar aliasing bugs, but all except this one seem to have
been fixed by Cygnus and/or NetBSD before the modified version of fdlibm
was imported into FreeBSD in 1994.

PR:		standards/113147
Submitted by:	Steve Kargl <sgk@troutmask.apl.washington.edu>
This commit is contained in:
Bruce Evans 2007-06-11 07:48:52 +00:00
parent 7262410a41
commit a8a2e00ebf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170550

View File

@ -39,6 +39,6 @@ frexpf(float x, int *eptr)
}
*eptr += (ix>>23)-126;
hx = (hx&0x807fffff)|0x3f000000;
*(int*)&x = hx;
SET_FLOAT_WORD(x,hx);
return x;
}