aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/alpha/fpu/bits
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2007-03-14 00:40:50 +0000
committerRichard Henderson <rth@redhat.com>2007-03-14 00:40:50 +0000
commit62789da349afecda9f1a9c1e549b71d794def872 (patch)
tree070b49c3be86f7b88eab18380b0b3a55f39127b3 /sysdeps/alpha/fpu/bits
parenta5ea509b614e4e0e7593cc5e0138fabed69b2e7b (diff)
downloadglibc-62789da349afecda9f1a9c1e549b71d794def872.zip
glibc-62789da349afecda9f1a9c1e549b71d794def872.tar.gz
glibc-62789da349afecda9f1a9c1e549b71d794def872.tar.bz2
* sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding. * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New. * sysdeps/alpha/fpu/libm-test-ulps: Regenerate. * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file. * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file. * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
* sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding. * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New. * sysdeps/alpha/fpu/libm-test-ulps: Regenerate. * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file. * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file. * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file. 2007-03-13 Richard Henderson <rth@redhat.com>
Diffstat (limited to 'sysdeps/alpha/fpu/bits')
-rw-r--r--sysdeps/alpha/fpu/bits/mathinline.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdeps/alpha/fpu/bits/mathinline.h b/sysdeps/alpha/fpu/bits/mathinline.h
index 87d4005..bcc1b56 100644
--- a/sysdeps/alpha/fpu/bits/mathinline.h
+++ b/sysdeps/alpha/fpu/bits/mathinline.h
@@ -178,6 +178,16 @@ __NTH (__signbit (double __x))
return __u.__i < 0;
}
+__MATH_INLINE int
+__NTH (__signbitl (long double __x))
+{
+ __extension__ union {
+ long double __d;
+ long __i[sizeof(long double)/sizeof(long)];
+ } __u = { __d: __x };
+ return __u.__i[sizeof(long double)/sizeof(long) - 1] < 0;
+}
+
#endif /* C99 */
#endif /* __NO_MATH_INLINES */