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