Piotr Caban : msvcr120: Add fallback implementation of asinh.

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


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

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Wed Jul 12 18:05:03 2017 +0200

msvcr120: Add fallback implementation of asinh.

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

---

 dlls/msvcrt/math.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c
index 04f09ac..387aab3 100644
--- a/dlls/msvcrt/math.c
+++ b/dlls/msvcrt/math.c
@@ -2873,8 +2873,8 @@ double CDECL MSVCR120_asinh(double x)
 #ifdef HAVE_ASINH
     return asinh(x);
 #else
-    FIXME( "not implemented\n" );
-    return 0.0;
+    if (!isfinite(x*x+1)) return log(2) + log(x);
+    return log(x + sqrt(x*x+1));
 #endif
 }
 
@@ -2886,8 +2886,7 @@ float CDECL MSVCR120_asinhf(float x)
 #ifdef HAVE_ASINHF
     return asinhf(x);
 #else
-    FIXME( "not implemented\n" );
-    return 0.0f;
+    return MSVCR120_asinh(x);
 #endif
 }
 




More information about the wine-cvs mailing list