Cygwin: math: Fix cosh(-INFINITY) to return +INFINITY
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
f4e7849fa9
commit
8dee6fe6a5
@ -21,7 +21,7 @@ long double coshl(long double x)
|
|||||||
else if (x_class == FP_INFINITE)
|
else if (x_class == FP_INFINITE)
|
||||||
{
|
{
|
||||||
errno = ERANGE;
|
errno = ERANGE;
|
||||||
return x;
|
return INFINITY;
|
||||||
}
|
}
|
||||||
x = fabsl (x);
|
x = fabsl (x);
|
||||||
if (x > (MAXLOGL + LOGE2L))
|
if (x > (MAXLOGL + LOGE2L))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user