commit | c715a6127a46b8090591972b5c4bb04dfabbca8b | [log] [tgz] |
---|---|---|
author | rsc <devnull@localhost> | Thu Dec 04 19:18:28 2003 +0000 |
committer | rsc <devnull@localhost> | Thu Dec 04 19:18:28 2003 +0000 |
tree | b4295532eb9dc1883136e52f9748bf11301fb3a3 | |
parent | ccee548fda64eeb62a771e01b5ddab5f4177b2bf [diff] [blame] |
nan
diff --git a/src/lib9/nan.c b/src/lib9/nan.c new file mode 100644 index 0000000..d9f6965 --- /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); +}