aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2010-09-26 23:17:21 +0200
committerDavid 'Digit' Turner <digit@google.com>2010-09-27 17:35:48 +0200
commitce2ebf8d7338095bf410259abf6874af295749d6 (patch)
treee335c588de033746ff3e8e08680c2062f71a787b
parentb9e49ad56e5776ace7c6eab2e997d5b7acb16792 (diff)
downloadbionic-ce2ebf8d7338095bf410259abf6874af295749d6.tar.gz
libm: remove aliasing issue.
See http://code.google.com/p/android/issues/detail?id=6697 for details about this change. Change-Id: I516f00c6f3bc99b22be51669e4573246bdd6e33d
-rw-r--r--libm/src/s_frexpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libm/src/s_frexpf.c b/libm/src/s_frexpf.c
index 89d464b4d..c18cd54c6 100644
--- a/libm/src/s_frexpf.c
+++ b/libm/src/s_frexpf.c
@@ -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;
}