diff options
author | das <das@FreeBSD.org> | 2011-10-15 04:24:54 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2011-10-15 04:24:54 +0000 |
commit | 567164fbd4a50ce58378cb8d2f278ebb27f32ea2 (patch) | |
tree | e688a6b7666ce42712a69b79955af530b53eb861 /lib/msun/src | |
parent | d52547cd89a3789c9c46868a6c50dc4d4227c902 (diff) | |
download | FreeBSD-src-567164fbd4a50ce58378cb8d2f278ebb27f32ea2.zip FreeBSD-src-567164fbd4a50ce58378cb8d2f278ebb27f32ea2.tar.gz |
Don't define FP_FAST_FMA on sparc64; with the recent fixes, fma() is
no longer "fast" on sparc64. (It really wasn't to begin with, since
the old implementation was using long doubles, and long doubles are
emulated in software on sparc64.)
Diffstat (limited to 'lib/msun/src')
-rw-r--r-- | lib/msun/src/math.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/msun/src/math.h b/lib/msun/src/math.h index 8ad13ed..69b138e 100644 --- a/lib/msun/src/math.h +++ b/lib/msun/src/math.h @@ -68,14 +68,11 @@ extern const union __nan_un { #define MATH_ERREXCEPT 2 #define math_errhandling MATH_ERREXCEPT -/* XXX We need a <machine/math.h>. */ -#if defined(__ia64__) || defined(__sparc64__) -#define FP_FAST_FMA 1 -#endif +#define FP_FAST_FMAF 1 #ifdef __ia64__ +#define FP_FAST_FMA 1 #define FP_FAST_FMAL 1 #endif -#define FP_FAST_FMAF 1 /* Symbolic constants to classify floating point numbers. */ #define FP_INFINITE 0x01 |