From 7431e772294a6d5455cfd1a6d45750bd26ac4d4e Mon Sep 17 00:00:00 2001 From: Tres Finocchiaro Date: Mon, 8 Dec 2014 14:42:19 -0500 Subject: [PATCH] More fmal() fixes --- include/lmms_math.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/lmms_math.h b/include/lmms_math.h index ac8ab6fdc..156303136 100644 --- a/include/lmms_math.h +++ b/include/lmms_math.h @@ -131,7 +131,7 @@ static inline int fast_rand() } //! @brief Takes advantage of fmal() function if present in hardware -static inline long fastFmal( long a, long b, long c ) { +static inline long double fastFmal( long double a, long double b, long double c ) { #ifdef FP_FAST_FMAF #ifdef __clang__ return fma( a, b, c ); @@ -157,7 +157,7 @@ static inline float fastFmaf( float a, float b, float c ) { } //! @brief Takes advantage of fma() function if present in hardware -static inline int fastFma( int a, int b, int c ) { +static inline double fastFma( double a, double b, double c ) { #ifdef FP_FAST_FMAF return fma( a, b, c ); #else