diff options
author | Ulrich Drepper <drepper@gmail.com> | 2011-10-23 12:50:28 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-10-23 12:50:28 -0400 |
commit | c8b3296bbeee2f482354f833f506ac91d142e147 (patch) | |
tree | b3d525545e10ae8def4923ca8d942939098c645f /sysdeps | |
parent | 246ad57ad6201ce1bc8bb8cd0c0d3db2cb8cf18d (diff) | |
download | glibc-c8b3296bbeee2f482354f833f506ac91d142e147.tar glibc-c8b3296bbeee2f482354f833f506ac91d142e147.tar.gz glibc-c8b3296bbeee2f482354f833f506ac91d142e147.tar.bz2 glibc-c8b3296bbeee2f482354f833f506ac91d142e147.zip |
Clean up last dla.h change
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/ieee754/dbl-64/dla.h | 12 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/doasin.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/dosincos.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/e_atan2.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/e_log.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/e_pow.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/e_sqrt.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/halfulp.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/s_atan.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/s_tan.c | 2 | ||||
-rw-r--r-- | sysdeps/x86_64/dla.h | 9 |
11 files changed, 18 insertions, 21 deletions
diff --git a/sysdeps/ieee754/dbl-64/dla.h b/sysdeps/ieee754/dbl-64/dla.h index 0ca87620cb..af202ad7a7 100644 --- a/sysdeps/ieee754/dbl-64/dla.h +++ b/sysdeps/ieee754/dbl-64/dla.h @@ -35,18 +35,6 @@ /* IEEE double. */ /***********************************************************************/ -/* We can use fma instructions if available. */ -#if defined __x86_64__ || (defined __i386__ && defined __SSE2_MATH__) -# ifdef __FMA4__ -# define DLA_FMA(x,y,z) \ - ({ double __zz; \ - asm ("vfmsubsd %3, %2, %1, %0" \ - : "=x" (__zz) : "x" (x), "xm" (y), "x" (z)); \ - __zz; }) -# endif -#endif - - /* CN = 1+2**27 = '41a0000002000000' IEEE double format */ #define CN 134217729.0 diff --git a/sysdeps/ieee754/dbl-64/doasin.c b/sysdeps/ieee754/dbl-64/doasin.c index 9ed7609541..c21d4b7df8 100644 --- a/sysdeps/ieee754/dbl-64/doasin.c +++ b/sysdeps/ieee754/dbl-64/doasin.c @@ -31,7 +31,7 @@ #include "endian.h" #include "mydefs.h" -#include "dla.h" +#include <dla.h> #include "math_private.h" /********************************************************************/ diff --git a/sysdeps/ieee754/dbl-64/dosincos.c b/sysdeps/ieee754/dbl-64/dosincos.c index 654f3424e8..4ae88c31cd 100644 --- a/sysdeps/ieee754/dbl-64/dosincos.c +++ b/sysdeps/ieee754/dbl-64/dosincos.c @@ -36,7 +36,7 @@ #include "endian.h" #include "mydefs.h" #include "sincos.tbl" -#include "dla.h" +#include <dla.h> #include "dosincos.h" #include "math_private.h" diff --git a/sysdeps/ieee754/dbl-64/e_atan2.c b/sysdeps/ieee754/dbl-64/e_atan2.c index 4d8c23af95..f8f678bc54 100644 --- a/sysdeps/ieee754/dbl-64/e_atan2.c +++ b/sysdeps/ieee754/dbl-64/e_atan2.c @@ -37,7 +37,7 @@ /* */ /************************************************************************/ -#include "dla.h" +#include <dla.h> #include "mpa.h" #include "MathLib.h" #include "uatan.tbl" diff --git a/sysdeps/ieee754/dbl-64/e_log.c b/sysdeps/ieee754/dbl-64/e_log.c index c158c8be30..14851638a5 100644 --- a/sysdeps/ieee754/dbl-64/e_log.c +++ b/sysdeps/ieee754/dbl-64/e_log.c @@ -36,7 +36,7 @@ #include "endian.h" -#include "dla.h" +#include <dla.h> #include "mpa.h" #include "MathLib.h" #include "math_private.h" diff --git a/sysdeps/ieee754/dbl-64/e_pow.c b/sysdeps/ieee754/dbl-64/e_pow.c index 643e1cb9cf..789054015d 100644 --- a/sysdeps/ieee754/dbl-64/e_pow.c +++ b/sysdeps/ieee754/dbl-64/e_pow.c @@ -37,7 +37,7 @@ /***************************************************************************/ #include "endian.h" #include "upow.h" -#include "dla.h" +#include <dla.h> #include "mydefs.h" #include "MathLib.h" #include "upow.tbl" diff --git a/sysdeps/ieee754/dbl-64/e_sqrt.c b/sysdeps/ieee754/dbl-64/e_sqrt.c index 05d1e71a0c..c507c598d7 100644 --- a/sysdeps/ieee754/dbl-64/e_sqrt.c +++ b/sysdeps/ieee754/dbl-64/e_sqrt.c @@ -35,7 +35,7 @@ #include "endian.h" #include "mydefs.h" -#include "dla.h" +#include <dla.h> #include "MathLib.h" #include "root.tbl" #include "math_private.h" diff --git a/sysdeps/ieee754/dbl-64/halfulp.c b/sysdeps/ieee754/dbl-64/halfulp.c index 5d27334630..373d405221 100644 --- a/sysdeps/ieee754/dbl-64/halfulp.c +++ b/sysdeps/ieee754/dbl-64/halfulp.c @@ -37,7 +37,7 @@ #include "endian.h" #include "mydefs.h" -#include "dla.h" +#include <dla.h> #include "math_private.h" static const int4 tab54[32] = { diff --git a/sysdeps/ieee754/dbl-64/s_atan.c b/sysdeps/ieee754/dbl-64/s_atan.c index b948f503a6..5ea83261aa 100644 --- a/sysdeps/ieee754/dbl-64/s_atan.c +++ b/sysdeps/ieee754/dbl-64/s_atan.c @@ -37,7 +37,7 @@ /* */ /************************************************************************/ -#include "dla.h" +#include <dla.h> #include "mpa.h" #include "MathLib.h" #include "uatan.tbl" diff --git a/sysdeps/ieee754/dbl-64/s_tan.c b/sysdeps/ieee754/dbl-64/s_tan.c index 015b027dc4..df8eedd922 100644 --- a/sysdeps/ieee754/dbl-64/s_tan.c +++ b/sysdeps/ieee754/dbl-64/s_tan.c @@ -36,7 +36,7 @@ #include <errno.h> #include "endian.h" -#include "dla.h" +#include <dla.h> #include "mpa.h" #include "MathLib.h" #include "math.h" diff --git a/sysdeps/x86_64/dla.h b/sysdeps/x86_64/dla.h new file mode 100644 index 0000000000..bb6c8c4be0 --- /dev/null +++ b/sysdeps/x86_64/dla.h @@ -0,0 +1,9 @@ +#ifdef __FMA4__ +# define DLA_FMA(x,y,z) \ + ({ double __zz; \ + asm ("vfmsubsd %3, %2, %1, %0" \ + : "=x" (__zz) : "x" (x), "xm" (y), "x" (z)); \ + __zz; }) +#endif + +#include "sysdeps/ieee754/dbl-64/dla.h" |