diff options
-rw-r--r-- | src/lib9/nan.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/lib9/nan.c b/src/lib9/nan.c new file mode 100644 index 00000000..d9f69655 --- /dev/null +++ b/src/lib9/nan.c @@ -0,0 +1,27 @@ +#include <u.h> +#include <libc.h> +#include "../libfmt/nan.h" + +double +NaN(void) +{ + return __NaN(); +} + +double +Inf(int sign) +{ + return __Inf(sign); +} + +int +isNaN(double x) +{ + return __isNaN(x); +} + +int +isInf(double x, int sign) +{ + return __isInf(x, sign); +} |