summaryrefslogtreecommitdiff
path: root/src/math/isnormal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/isnormal.h')
-rw-r--r--src/math/isnormal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/math/isnormal.h b/src/math/isnormal.h
new file mode 100644
index 00000000..95e82b1b
--- /dev/null
+++ b/src/math/isnormal.h
@@ -0,0 +1,8 @@
+#include <math.h>
+
+#define isnormal(__x) (fpclassify(__x) == FP_NORMAL)
+
+/*
+STDC(199901)
+LINK(m)
+*/