diff options
| author | forsyth <forsyth@vitanuova.com> | 2012-01-03 21:08:02 +0000 |
|---|---|---|
| committer | forsyth <forsyth@vitanuova.com> | 2012-01-03 21:08:02 +0000 |
| commit | cd03a2dc3bfa8e793b2e4702966706c10d69b314 (patch) | |
| tree | 5f08b409b6137c3a57f739f816efb10176269b66 /lib9/isnan-posix.c | |
| parent | 70847ce7c3d2ee9800014eb328f362b8e335ac76 (diff) | |
20120103-2107
Diffstat (limited to 'lib9/isnan-posix.c')
| -rw-r--r-- | lib9/isnan-posix.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib9/isnan-posix.c b/lib9/isnan-posix.c new file mode 100644 index 00000000..ece5c0d8 --- /dev/null +++ b/lib9/isnan-posix.c @@ -0,0 +1,15 @@ +#include <lib9.h> + +int +isNaN(double d) +{ + return isnan(d); +} + +int +isInf(double d, int sign) +{ + if(sign < 0) + return isinf(d) < 0; + return isinf(d); +} |
