OSDN Git Service

libm: remove aliasing issue.
authorDavid 'Digit' Turner <digit@google.com>
Sun, 26 Sep 2010 21:17:21 +0000 (23:17 +0200)
committerDavid 'Digit' Turner <digit@google.com>
Mon, 27 Sep 2010 15:35:48 +0000 (17:35 +0200)
See http://code.google.com/p/android/issues/detail?id=6697
for details about this change.

Change-Id: I516f00c6f3bc99b22be51669e4573246bdd6e33d

libm/src/s_frexpf.c

index 89d464b..c18cd54 100644 (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;
 }