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:
parent
e40dd74d81
commit
fc1107382b
|
@ -3063,7 +3063,10 @@ double CDECL MSVCR120_asinh(double x)
|
||||||
#ifdef HAVE_ASINH
|
#ifdef HAVE_ASINH
|
||||||
return asinh(x);
|
return asinh(x);
|
||||||
#else
|
#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));
|
return log(x + sqrt(x*x+1));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue