diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-08-17 07:34:10 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2008-08-17 07:34:10 +0000 |
commit | 7df49c5d81b9f8ea55f16af939e0662d24cc099e (patch) | |
tree | 97df0975c7fdd142515dbcff3b92f330bd9869fb /sysdeps/powerpc/fpu | |
parent | 965805e888b25d24cd5ca74b81ffdc61de6e0869 (diff) | |
download | glibc-7df49c5d81b9f8ea55f16af939e0662d24cc099e.tar glibc-7df49c5d81b9f8ea55f16af939e0662d24cc099e.tar.gz glibc-7df49c5d81b9f8ea55f16af939e0662d24cc099e.tar.bz2 glibc-7df49c5d81b9f8ea55f16af939e0662d24cc099e.zip |
[BZ #6845]
2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
[BZ #6845]
* sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
__signbitl definition and __LONG_DOUBLE_128__ guard from:
* sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
redundant. Functions which call floating point assembler operations
should go into a sysdeps powerpc/fpu directory.
Diffstat (limited to 'sysdeps/powerpc/fpu')
-rw-r--r-- | sysdeps/powerpc/fpu/bits/mathinline.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sysdeps/powerpc/fpu/bits/mathinline.h b/sysdeps/powerpc/fpu/bits/mathinline.h index 4d4612dac0..4fa4bcaf16 100644 --- a/sysdeps/powerpc/fpu/bits/mathinline.h +++ b/sysdeps/powerpc/fpu/bits/mathinline.h @@ -1,5 +1,5 @@ /* Inline math functions for powerpc. - Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2004, 2006, 2007 + Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2004, 2006, 2007, 2008 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -72,6 +72,14 @@ __NTH (__signbit (double __x)) __extension__ union { double __d; int __i[2]; } __u = { __d: __x }; return __u.__i[0] < 0; } +# ifdef __LONG_DOUBLE_128__ +__MATH_INLINE int +__NTH (__signbitl (long double __x)) +{ + __extension__ union { long double __d; int __i[4]; } __u = { __d: __x }; + return __u.__i[0] < 0; +} +# endif # endif #endif /* __USE_ISOC99 */ |