diff options
Diffstat (limited to 'src/math/log2.c')
| -rw-r--r-- | src/math/log2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/math/log2.c b/src/math/log2.c index c339d3df..a39f6017 100644 --- a/src/math/log2.c +++ b/src/math/log2.c @@ -7,6 +7,7 @@ TYPE TGFN(log2)(TYPE x) { + SIGNAL_SAFE(0); switch (fpclassify(x)) { case FP_ZERO: feraiseexcept(FE_DIVBYZERO); return - INFINITY; case FP_INFINITE: if (!signbit(x)) { return x; } break; |
