aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/fmt/nan64.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib9/fmt/nan64.c')
-rw-r--r--src/lib9/fmt/nan64.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/lib9/fmt/nan64.c b/src/lib9/fmt/nan64.c
index dcdcd799..6e355a20 100644
--- a/src/lib9/fmt/nan64.c
+++ b/src/lib9/fmt/nan64.c
@@ -5,24 +5,17 @@
* same byte ordering.
*/
-#include "nan.h"
+#include "plan9.h"
+#include "fmt.h"
+#include "fmtdef.h"
#if defined (__APPLE__) || (__powerpc__)
#define _NEEDLL
#endif
-typedef unsigned long long uvlong;
-typedef unsigned long ulong;
-
-#ifdef _NEEDLL
-static uvlong uvnan = 0x7FF0000000000001LL;
-static uvlong uvinf = 0x7FF0000000000000LL;
-static uvlong uvneginf = 0xFFF0000000000000LL;
-#else
static uvlong uvnan = ((uvlong)0x7FF00000<<32)|0x00000001;
static uvlong uvinf = ((uvlong)0x7FF00000<<32)|0x00000000;
static uvlong uvneginf = ((uvlong)0xFFF00000<<32)|0x00000000;
-#endif
double
__NaN(void)
@@ -72,5 +65,3 @@ __isInf(double d, int sign)
else
return x==uvneginf;
}
-
-