Commit fc110738 authored by Martin Storsjo's avatar Martin Storsjo Committed by Alexandre Julliard

msvcrt: Fix the fallback implementation of asinh for large negative values.

parent e40dd74d
......@@ -3063,7 +3063,10 @@ double CDECL MSVCR120_asinh(double x)
#ifdef HAVE_ASINH
return asinh(x);
#else
if (!isfinite(x*x+1)) return log(2) + log(x);
if (!isfinite(x*x+1)) {
if (x > 0) return log(2) + log(x);
else return -log(2) - log(-x);
}
return log(x + sqrt(x*x+1));
#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