summaryrefslogtreecommitdiff
path: root/src/math/isinf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/isinf.c')
-rw-r--r--src/math/isinf.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/math/isinf.c b/src/math/isinf.c
new file mode 100644
index 00000000..031d870a
--- /dev/null
+++ b/src/math/isinf.c
@@ -0,0 +1,12 @@
+#include <math.h>
+ int __isinff(float x);
+ int __isinfd(double x);
+ int __isinfl(long double x);
+
+#define isinf(x) ((sizeof (x) == sizeof (float)) ? __isinff(x) : \
+ (sizeof (x) == sizeof (double)) ? __isinfd(x) : __isinfl(x))
+
+/*
+STDC(199901)
+LINK(m)
+*/