diff options
Diffstat (limited to 'src/math/erf.c')
| -rw-r--r-- | src/math/erf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/math/erf.c b/src/math/erf.c index db5488e1..29fb392b 100644 --- a/src/math/erf.c +++ b/src/math/erf.c @@ -6,6 +6,7 @@ TYPE TGFN(erf)(TYPE x) { + SIGNAL_SAFE(0); switch (fpclassify(x)) { case FP_ZERO: return x; case FP_INFINITE: return signbit(x) ? -1.0 : 1.0; |
