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

Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Martin Storsjo 2019-04-23 10:00:04 +03:00 committed by Alexandre Julliard
parent e40dd74d81
commit fc1107382b
1 changed files with 4 additions and 1 deletions

View File

@ -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
}