aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386/fpu
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-06-26 22:59:42 +0000
committerUlrich Drepper <drepper@redhat.com>1998-06-26 22:59:42 +0000
commitdb24ce47acb0727934bc8a0bedccf1be24791d13 (patch)
treefeb43eb886338b97cbcd7fc77045e0ac58cab0db /sysdeps/i386/fpu
parentd6db1d53b378a5b1bfdbad56978acce5f6e46409 (diff)
downloadglibc-db24ce47acb0727934bc8a0bedccf1be24791d13.tar
glibc-db24ce47acb0727934bc8a0bedccf1be24791d13.tar.gz
glibc-db24ce47acb0727934bc8a0bedccf1be24791d13.tar.bz2
glibc-db24ce47acb0727934bc8a0bedccf1be24791d13.zip
Update.
1998-06-26 Ulrich Drepper <drepper@cygnus.com> * sysdeps/i386/fpu/bits/mathinline.h (__finite): Use alias-safe code.
Diffstat (limited to 'sysdeps/i386/fpu')
-rw-r--r--sysdeps/i386/fpu/bits/mathinline.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/i386/fpu/bits/mathinline.h b/sysdeps/i386/fpu/bits/mathinline.h
index ee00f5881a..836e5a3050 100644
--- a/sysdeps/i386/fpu/bits/mathinline.h
+++ b/sysdeps/i386/fpu/bits/mathinline.h
@@ -581,7 +581,9 @@ __MATH_INLINE int __finite (double __x) __attribute__ ((__const__));
__MATH_INLINE int
__finite (double __x)
{
- return ((((int *) &__x)[1] | 0x800fffff) + 1) >> 31;
+ return (__extension__
+ (((((union { double __d; int __i[2]; }) {__d: __x}).i[1]
+ | 0x800fffff) + 1) >> 31));
}
/* Miscellaneous functions */