Grazvydas Ignotas : include: Use fabsf implementation when available.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Oct 20 11:28:30 CDT 2015


Module: wine
Branch: master
Commit: cc902bce5bddca44f2583a00a12541dfd0d89d45
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cc902bce5bddca44f2583a00a12541dfd0d89d45

Author: Grazvydas Ignotas <notasas at gmail.com>
Date:   Sun Oct 18 02:31:04 2015 +0300

include: Use fabsf implementation when available.

Signed-off-by: Grazvydas Ignotas <notasas at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 a7cbcc0..4f69b88 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);




More information about the wine-cvs mailing list