From: Ulrich Drepper Date: Fri, 26 Jun 1998 22:59:42 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_0_95~93 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db24ce47acb0727934bc8a0bedccf1be24791d13;p=thirdparty%2Fglibc.git Update. 1998-06-26 Ulrich Drepper * sysdeps/i386/fpu/bits/mathinline.h (__finite): Use alias-safe code. --- diff --git a/ChangeLog b/ChangeLog index 341991d625c..aaa3e0d4f67 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1998-06-26 Ulrich Drepper + + * sysdeps/i386/fpu/bits/mathinline.h (__finite): Use alias-safe + code. + 1998-06-26 Thorsten Kukuk * nis/nis_call.c: Don't copy server structure. diff --git a/sysdeps/i386/fpu/bits/mathinline.h b/sysdeps/i386/fpu/bits/mathinline.h index ee00f5881a7..836e5a30506 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 */