summaryrefslogtreecommitdiff
path: root/src/math/exp2.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-01-30 13:24:56 -0500
committerJakob Kaivo <jkk@ung.org>2024-01-30 13:24:56 -0500
commit371913c93cc3ffc4dd0a4a18bc0f3021f0ec05db (patch)
treecfed8177dfedcb340b89475c0541c0ab74127abd /src/math/exp2.c
parent548a71c010f8adf2d71f56436c67136ad6e0f316 (diff)
update standard and safety checks
Diffstat (limited to 'src/math/exp2.c')
-rw-r--r--src/math/exp2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/math/exp2.c b/src/math/exp2.c
index 5e8e17b2..2e2fbb90 100644
--- a/src/math/exp2.c
+++ b/src/math/exp2.c
@@ -6,6 +6,7 @@
TYPE TGFN(exp2)(TYPE x)
{
+ SIGNAL_SAFE(0);
switch (fpclassify(x)) {
case FP_ZERO: return 1.0;
case FP_INFINITE: return signbit(x) ? 0.0 : x;