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