Use correct FMA_ macros

This commit is contained in:
Tres Finocchiaro
2014-12-09 08:28:00 -05:00
parent 7431e77229
commit bbe337bd03

View File

@@ -132,7 +132,7 @@ static inline int fast_rand()
//! @brief Takes advantage of fmal() function if present in hardware
static inline long double fastFmal( long double a, long double b, long double c ) {
#ifdef FP_FAST_FMAF
#ifdef FP_FAST_FMAL
#ifdef __clang__
return fma( a, b, c );
#else
@@ -158,7 +158,7 @@ static inline float fastFmaf( float a, float b, float c ) {
//! @brief Takes advantage of fma() function if present in hardware
static inline double fastFma( double a, double b, double c ) {
#ifdef FP_FAST_FMAF
#ifdef FP_FAST_FMA
return fma( a, b, c );
#else
return a * b + c;