From: John Marino Date: Sat, 18 Jul 2015 15:04:01 +0000 (+0200) Subject: OpenLIBM: Undefine two C99 macros X-Git-Tag: v4.3.1~131 X-Git-Url: https://gitweb.dragonflybsd.org/~tuxillo/dragonfly.git/commitdiff_plain/45bf7e55b398e7dbacfd9c46d3589c22449f1e0d OpenLIBM: Undefine two C99 macros Martynas@openbsd believes that only fast FMA for float is implemented, and that the double and long double versions are not "fast". This also matches what FreeBSD has so I'm reverting these new definitions on his recommendation. --- diff --git a/contrib/openbsd_libm/include/global/math.h b/contrib/openbsd_libm/include/global/math.h index 8051cf1b86..6dfb80a05e 100644 --- a/contrib/openbsd_libm/include/global/math.h +++ b/contrib/openbsd_libm/include/global/math.h @@ -67,9 +67,13 @@ extern char __nan[]; #define FP_ILOGB0 (-INT_MAX) #define FP_ILOGBNAN INT_MAX +/* +martynas@openbsd believes only F version is true. This matches +FreeBSD's math lib as well, so don't define D/L versions for now. #define FP_FAST_FMA 1 -#define FP_FAST_FMAF 1 #define FP_FAST_FMAL 1 +*/ +#define FP_FAST_FMAF 1 #define MATH_ERRNO 1 #define MATH_ERREXCEPT 2