clean up for unix port
This commit is contained in:
parent
5c8a042171
commit
e5aa96acbf
58 changed files with 160 additions and 127 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue