diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-03-03 21:20:24 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-03-03 21:20:24 -0500 |
commit | 91730b52d57d540c96312b2b26e228bb2a37b8c1 (patch) | |
tree | 1bc13f08b84f007a651dced9ea880e531d7f8dd3 /src/math/__fpclassify.c | |
parent | 8c7cdf31bd692e1697a5a01664717c3b9dbffc59 (diff) |
add functions to be referenced by fpclassify() macro
Diffstat (limited to 'src/math/__fpclassify.c')
-rw-r--r-- | src/math/__fpclassify.c | 20 |
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) +*/ |