summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-03-03 21:20:24 -0500
committerJakob Kaivo <jkk@ung.org>2019-03-03 21:20:24 -0500
commit91730b52d57d540c96312b2b26e228bb2a37b8c1 (patch)
tree1bc13f08b84f007a651dced9ea880e531d7f8dd3 /src
parent8c7cdf31bd692e1697a5a01664717c3b9dbffc59 (diff)
add functions to be referenced by fpclassify() macro
Diffstat (limited to 'src')
-rw-r--r--src/math/__fpclassify.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/math/__fpclassify.c b/src/math/__fpclassify.c
new file mode 100644
index 00000000..d6ec23bf
--- /dev/null
+++ b/src/math/__fpclassify.c
@@ -0,0 +1,20 @@
+# define TGSOURCE "__fpclassify.c"
+#include <math.h>
+#include "_tgmath.h"
+
+#if ! defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
+#include "FP_INFINITE.c"
+#include "FP_NAN.c"
+#include "FP_NORMAL.c"
+#include "FP_SUBNORMAL.c"
+#include "FP_ZERO.c"
+
+int TGFN(__fpclassify)(TYPE x)
+{
+ (void)x;
+ return FP_NORMAL;
+}
+
+/*
+LINK(m)
+*/