[PATCH 2/3] include: Use fabsf implementation when available.

Grazvydas Ignotas notasas at gmail.com
Sat Oct 17 18:31:04 CDT 2015


Signed-off-by: Grazvydas Ignotas <notasas at gmail.com>
---
 include/msvcrt/math.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/msvcrt/math.h b/include/msvcrt/math.h
index 6dd0b97..ebe51e5 100644
--- a/include/msvcrt/math.h
+++ b/include/msvcrt/math.h
@@ -120,13 +120,13 @@ float __cdecl fmodf(float, float);
 #define sqrtf(x) ((float)sqrt((double)(x)))
 #define ceilf(x) ((float)ceil((double)(x)))
 #define floorf(x) ((float)floor((double)(x)))
+#define fabsf(x) ((float)fabs((double)(x)))
 #define frexpf(x) ((float)frexp((double)(x)))
 #define modff(x,y) ((float)modf((double)(x), (double*)(y)))
 #define fmodf(x,y) ((float)fmod((double)(x), (double)(y)))
 
 #endif
 
-#define fabsf(x) ((float)fabs((double)(x)))
 #define ldexpf(x,y) ((float)ldexp((double)(x),(y)))
 
 float __cdecl _hypotf(float, float);
-- 
1.9.1




More information about the wine-patches mailing list