From d97b8a3d218fc43ce0b345a81b283bc0d439b1ea Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 1 Jun 2012 19:56:36 +0000 Subject: [PATCH] Use dbl-64 fma for MIPS64. --- ChangeLog.mips | 3 +++ sysdeps/mips/mips64/n32/s_fma.c | 6 ++++++ sysdeps/mips/mips64/n64/s_fma.c | 6 ++++++ 3 files changed, 15 insertions(+) create mode 100644 sysdeps/mips/mips64/n32/s_fma.c create mode 100644 sysdeps/mips/mips64/n64/s_fma.c diff --git a/ChangeLog.mips b/ChangeLog.mips index 5cd25e7..853f286 100644 --- a/ChangeLog.mips +++ b/ChangeLog.mips @@ -1,5 +1,8 @@ 2012-06-01 Joseph Myers + * sysdeps/mips/mips64/n32/s_fma.c: New file. + * sysdeps/mips/mips64/n64/s_fma.c: Likewise. + * sysdeps/unix/sysv/linux/mips/Makefile (abi-n32-condition): Fix typo. diff --git a/sysdeps/mips/mips64/n32/s_fma.c b/sysdeps/mips/mips64/n32/s_fma.c new file mode 100644 index 0000000..74a1e01 --- /dev/null +++ b/sysdeps/mips/mips64/n32/s_fma.c @@ -0,0 +1,6 @@ +/* MIPS long double is implemented in software by fp-bit (as of GCC + 4.7) without support for exceptions or rounding modes, so the fma + implementation in terms of long double is slow and will not produce + correctly rounding results. */ + +#include diff --git a/sysdeps/mips/mips64/n64/s_fma.c b/sysdeps/mips/mips64/n64/s_fma.c new file mode 100644 index 0000000..74a1e01 --- /dev/null +++ b/sysdeps/mips/mips64/n64/s_fma.c @@ -0,0 +1,6 @@ +/* MIPS long double is implemented in software by fp-bit (as of GCC + 4.7) without support for exceptions or rounding modes, so the fma + implementation in terms of long double is slow and will not produce + correctly rounding results. */ + +#include -- 2.7.4