From 91730b52d57d540c96312b2b26e228bb2a37b8c1 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sun, 3 Mar 2019 21:20:24 -0500 Subject: add functions to be referenced by fpclassify() macro --- src/math/__fpclassify.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/math/__fpclassify.c (limited to 'src') 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 +#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) +*/ -- cgit v1.2.1