diff options
Diffstat (limited to 'src/math/fpclassify.c')
-rw-r--r-- | src/math/fpclassify.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/math/fpclassify.c b/src/math/fpclassify.c new file mode 100644 index 00000000..da9b24af --- /dev/null +++ b/src/math/fpclassify.c @@ -0,0 +1,12 @@ +#include <math.h> + int __fpclassifyf(float x); + int __fpclassifyd(double x); + int __fpclassifyl(long double x); + +#define fpclassify(x) ((sizeof (x) == sizeof (float)) ? __fpclassifyf(x) : \ + (sizeof (x) == sizeof (double)) ? __fpclassifyd(x) : __fpclassifyl(x)) + +/* +STDC(199901) +LINK(m) +*/ |