From 15d5d9deb15b77e7a53f51e617b01f614e843cb9 Mon Sep 17 00:00:00 2001 From: David Schultz Date: Sat, 15 Oct 2011 04:24:54 +0000 Subject: [PATCH] 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.) --- lib/msun/src/math.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/msun/src/math.h b/lib/msun/src/math.h index 8ad13ed0b15..69b138e3c6d 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 . */ -#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 -- 2.45.2