Cygwin: math: Properly propagate input NANs in a few functions
While the C99 standard doesn't explicitly require this, the standard says it is recommended (F.9.13). Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
committed by
Corinna Vinschen
parent
8dee6fe6a5
commit
f7f296b46f
@@ -243,6 +243,9 @@ long double erfcl(long double a)
|
||||
if (isinf (a))
|
||||
return (signbit(a) ? 2.0 : 0.0);
|
||||
|
||||
if (isnan (a))
|
||||
return (a);
|
||||
|
||||
x = fabsl (a);
|
||||
|
||||
if (x < 1.0L)
|
||||
|
Reference in New Issue
Block a user