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