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)
#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
}
......
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