Alex Henrie : msvcr120: If erff is not available, fall back to erf.

Alexandre Julliard julliard at winehq.org
Thu Jul 13 14:41:33 CDT 2017


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

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Wed Jul 12 18:04:40 2017 +0200

msvcr120: If erff is not available, fall back to erf.

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msvcrt/math.c | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c
index ffb83a6..c5228aa 100644
--- a/dlls/msvcrt/math.c
+++ b/dlls/msvcrt/math.c
@@ -2733,28 +2733,27 @@ short CDECL MSVCR120__ldtest(LDOUBLE *x)
 }
 
 /*********************************************************************
- *      erff (MSVCR120.@)
+ *      erf (MSVCR120.@)
  */
-float CDECL MSVCR120_erff(float x)
+double CDECL MSVCR120_erf(double x)
 {
-#ifdef HAVE_ERFF
-    return erff(x);
+#ifdef HAVE_ERF
+    return erf(x);
 #else
     FIXME( "not implemented\n" );
-    return 0.0f;
+    return 0.0;
 #endif
 }
 
 /*********************************************************************
- *      erf (MSVCR120.@)
+ *      erff (MSVCR120.@)
  */
-double CDECL MSVCR120_erf(double x)
+float CDECL MSVCR120_erff(float x)
 {
-#ifdef HAVE_ERF
-    return erf(x);
+#ifdef HAVE_ERFF
+    return erff(x);
 #else
-    FIXME( "not implemented\n" );
-    return 0.0;
+    return MSVCR120_erf(x);
 #endif
 }
 




More information about the wine-cvs mailing list