From 62789da349afecda9f1a9c1e549b71d794def872 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 14 Mar 2007 00:40:50 +0000 Subject: * 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 --- sysdeps/alpha/fpu/bits/mathinline.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sysdeps/alpha/fpu/bits/mathinline.h') diff --git a/sysdeps/alpha/fpu/bits/mathinline.h b/sysdeps/alpha/fpu/bits/mathinline.h index 87d40058c3..bcc1b56d0d 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 */ -- cgit v1.2.3