diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-10-04 10:53:59 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-10-04 10:53:59 -0700 |
commit | 7f2e6e89fa86e15096f02e02a1af25a6f05ddcc0 (patch) | |
tree | d118d8fcb319234510c440769b4f91b5d66f869d /sysdeps/x86_64/fpu/multiarch/mul-avx.c | |
parent | f57f805541562734a40088b8be93e3bc9e86be54 (diff) | |
download | glibc-hjl/pr14654.tar.gz glibc-hjl/pr14654.tar.xz glibc-hjl/pr14654.zip |
Extract __mul from sysdeps/ieee754/dbl-64/mpa.c hjl/pr14654
Compile __mul with both AVX and FMA4. Compile other functions only with AVX since they don't benefit from FMA4.
Diffstat (limited to 'sysdeps/x86_64/fpu/multiarch/mul-avx.c')
-rw-r--r-- | sysdeps/x86_64/fpu/multiarch/mul-avx.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/x86_64/fpu/multiarch/mul-avx.c b/sysdeps/x86_64/fpu/multiarch/mul-avx.c new file mode 100644 index 0000000000..b4f0477b6f --- /dev/null +++ b/sysdeps/x86_64/fpu/multiarch/mul-avx.c @@ -0,0 +1,8 @@ +#define __mul __mul_avx + +#define NO___CPY 1 +#define NO___MP_DBL 1 +#define NO___ACR 1 +#define SECTION __attribute__ ((section (".text.avx"))) + +#include <sysdeps/ieee754/dbl-64/mpa.c> |