Commit 4df7ced7 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcr120: Add fallback implementation of asinh.

parent e495e25a
...@@ -2873,8 +2873,8 @@ double CDECL MSVCR120_asinh(double x) ...@@ -2873,8 +2873,8 @@ double CDECL MSVCR120_asinh(double x)
#ifdef HAVE_ASINH #ifdef HAVE_ASINH
return asinh(x); return asinh(x);
#else #else
FIXME( "not implemented\n" ); if (!isfinite(x*x+1)) return log(2) + log(x);
return 0.0; return log(x + sqrt(x*x+1));
#endif #endif
} }
...@@ -2886,8 +2886,7 @@ float CDECL MSVCR120_asinhf(float x) ...@@ -2886,8 +2886,7 @@ float CDECL MSVCR120_asinhf(float x)
#ifdef HAVE_ASINHF #ifdef HAVE_ASINHF
return asinhf(x); return asinhf(x);
#else #else
FIXME( "not implemented\n" ); return MSVCR120_asinh(x);
return 0.0f;
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment