summaryrefslogtreecommitdiff
path: root/src/math/fpclassify.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/fpclassify.h')
-rw-r--r--src/math/fpclassify.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/math/fpclassify.h b/src/math/fpclassify.h
new file mode 100644
index 00000000..131905af
--- /dev/null
+++ b/src/math/fpclassify.h
@@ -0,0 +1,11 @@
+#include <math.h>
+
+#define fpclassify(__x) \
+ ((sizeof (__x) == sizeof (float)) ? __fpclassifyf(__x) : \
+ (sizeof (__x) == sizeof (double)) ? __fpclassify(__x) : \
+ __fpclassifyl(__x))
+
+/*
+STDC(199901)
+LINK(m)
+*/