History

20120103-2107

forsyth committed 14 years ago

Commit 0de61ca1 parent a098dea14 files · +76 −10Browse files

Unified · Split

14 files
  1. CHANGES +2 −0
  2. DragonFly/386/include/lib9.h +9 −1
  3. FreeBSD/386/include/lib9.h +9 −1
  4. MacOSX/386/include/lib9.h +9 −1
  5. MacOSX/power/include/lib9.h +9 −1
  6. NetBSD/386/include/lib9.h +9 −1
  7. OpenBSD/386/include/lib9.h +9 −1
  8. include/version.h +1 −1
  9. lib9/isnan-posix.c +15 −0
  10. lib9/mkfile-Nt +1 −0
  11. lib9/mkfile-Posix +1 −0
  12. libinterp/math.c +1 −1
  13. libmath/mkfile +0 −1
  14. limbo/nodes.c +1 −1
CHANGES+2−0
@@ -1,3 +1,5 @@
120120103
2 avoid re-defining isnan; use isNaN instead
120111231320111231
2 Linux/*/include/emu.h adjustments for USE_PTHREADS for non-x86 processors4 Linux/*/include/emu.h adjustments for USE_PTHREADS for non-x86 processors
320111221520111221
DragonFly/386/include/lib9.h+9−1
@@ -20,7 +20,6 @@ · 19 unmodified lines
20 20
21#define getwd infgetwd21#define getwd infgetwd
22 22
23#undef isnan
24#define round infround23#define round infround
25#define fmax inffmax24#define fmax inffmax
26#define log2 inflog225#define log2 inflog2
@@ -49,6 +48,15 @@ typedef unsigned short u16int; · 22 unmodified lines
49typedef unsigned char u8int;48typedef unsigned char u8int;
50typedef unsigned long uintptr;49typedef unsigned long uintptr;
51 50
51typedef signed char int8;
52typedef unsigned char uint8;
53typedef short int16;
54typedef unsigned short uint16;
55typedef int int32;
56typedef unsigned int uint32;
57typedef long long int64;
58typedef unsigned long long uint64;
59
52#define USED(x) if(x){}else{}60#define USED(x) if(x){}else{}
53#define SET(x)61#define SET(x)
54 62
FreeBSD/386/include/lib9.h+9−1
@@ -20,7 +20,6 @@ · 19 unmodified lines
20 20
21#define getwd infgetwd21#define getwd infgetwd
22 22
23#undef isnan
24#define round infround23#define round infround
25#define fmax inffmax24#define fmax inffmax
26#define log2 inflog225#define log2 inflog2
@@ -50,6 +49,15 @@ typedef unsigned short u16int; · 23 unmodified lines
50typedef unsigned char u8int;49typedef unsigned char u8int;
51typedef unsigned long uintptr;50typedef unsigned long uintptr;
52 51
52typedef signed char int8;
53typedef unsigned char uint8;
54typedef short int16;
55typedef unsigned short uint16;
56typedef int int32;
57typedef unsigned int uint32;
58typedef long long int64;
59typedef unsigned long long uint64;
60
53#define USED(x) if(x){}else{}61#define USED(x) if(x){}else{}
54#define SET(x)62#define SET(x)
55 63
MacOSX/386/include/lib9.h+9−1
@@ -43,6 +43,15 @@ typedef unsigned short u16int; · 42 unmodified lines
43typedef unsigned char u8int;43typedef unsigned char u8int;
44typedef unsigned long uintptr;44typedef unsigned long uintptr;
45 45
46typedef signed char int8;
47typedef unsigned char uint8;
48typedef short int16;
49typedef unsigned short uint16;
50typedef int int32;
51typedef unsigned int uint32;
52typedef long long int64;
53typedef unsigned long long uint64;
54
46/* handle conflicts with host os libs */55/* handle conflicts with host os libs */
47#define getwd infgetwd56#define getwd infgetwd
48#define scalb infscalb57#define scalb infscalb
@@ -50,7 +59,6 @@ typedef unsigned long uintptr; · 1 unmodified line
50#define panic infpanic59#define panic infpanic
51#define rint infrint60#define rint infrint
52#define rcmd infrcmd61#define rcmd infrcmd
53#undef isnan
54#define pow10 infpow1062#define pow10 infpow10
55 63
56#ifndef EMU64#ifndef EMU
MacOSX/power/include/lib9.h+9−1
@@ -43,6 +43,15 @@ typedef unsigned short u16int; · 42 unmodified lines
43typedef unsigned char u8int;43typedef unsigned char u8int;
44typedef unsigned long uintptr;44typedef unsigned long uintptr;
45 45
46typedef signed char int8;
47typedef unsigned char uint8;
48typedef short int16;
49typedef unsigned short uint16;
50typedef int int32;
51typedef unsigned int uint32;
52typedef long long int64;
53typedef unsigned long long uint64;
54
46/* handle conflicts with host os libs */55/* handle conflicts with host os libs */
47#define getwd infgetwd56#define getwd infgetwd
48#define scalb infscalb57#define scalb infscalb
@@ -50,7 +59,6 @@ typedef unsigned long uintptr; · 1 unmodified line
50#define panic infpanic59#define panic infpanic
51#define rint infrint60#define rint infrint
52#define rcmd infrcmd61#define rcmd infrcmd
53#undef isnan
54#define pow10 infpow1062#define pow10 infpow10
55 63
56#ifndef EMU64#ifndef EMU
NetBSD/386/include/lib9.h+9−1
@@ -15,7 +15,6 @@ · 14 unmodified lines
15 15
16#define getwd infgetwd16#define getwd infgetwd
17 17
18#undef isnan
19#define round infround18#define round infround
20#define fmax inffmax19#define fmax inffmax
21#define log2 inflog220#define log2 inflog2
@@ -49,6 +48,15 @@ typedef uvlong u64int; · 27 unmodified lines
49 48
50typedef uintptr_t uintptr;49typedef uintptr_t uintptr;
51 50
51typedef signed char int8;
52typedef unsigned char uint8;
53typedef short int16;
54typedef unsigned short uint16;
55typedef int int32;
56typedef unsigned int uint32;
57typedef long long int64;
58typedef unsigned long long uint64;
59
52typedef unsigned short Rune;60typedef unsigned short Rune;
53typedef unsigned int mpdigit; /* for /sys/include/mp.h */61typedef unsigned int mpdigit; /* for /sys/include/mp.h */
54 62
OpenBSD/386/include/lib9.h+9−1
@@ -20,7 +20,6 @@ · 19 unmodified lines
20 20
21#define getwd infgetwd21#define getwd infgetwd
22 22
23#undef isnan
24#define round infround23#define round infround
25#define fmax inffmax24#define fmax inffmax
26#define log2 inflog225#define log2 inflog2
@@ -50,6 +49,15 @@ typedef unsigned short u16int; · 23 unmodified lines
50typedef unsigned char u8int;49typedef unsigned char u8int;
51typedef unsigned long uintptr;50typedef unsigned long uintptr;
52 51
52typedef signed char int8;
53typedef unsigned char uint8;
54typedef short int16;
55typedef unsigned short uint16;
56typedef int int32;
57typedef unsigned int uint32;
58typedef long long int64;
59typedef unsigned long long uint64;
60
53#define USED(x) if(x){}else{}61#define USED(x) if(x){}else{}
54#define SET(x)62#define SET(x)
55 63
include/version.h+1−1
@@ -1 +1 @@
1#define VERSION "Fourth Edition (20111231)"1#define VERSION "Fourth Edition (20120103)"
lib9/isnan-posix.c+15−0
@@ -0,0 +1,15 @@
1#include <lib9.h>
2
3int
4isNaN(double d)
5{
6 return isnan(d);
7}
8
9int
10isInf(double d, int sign)
11{
12 if(sign < 0)
13 return isinf(d) < 0;
14 return isinf(d);
15}
lib9/mkfile-Nt+1−0
@@ -7,3 +7,4 @@ TARGFILES=\ · 6 unmodified lines
7 setbinmode-Nt.$O\7 setbinmode-Nt.$O\
8 lock-Nt-386.$O\8 lock-Nt-386.$O\
9 pread-Nt.$O\9 pread-Nt.$O\
10 isnan-posix.$O\
lib9/mkfile-Posix+1−0
@@ -6,3 +6,4 @@ TARGFILES=\ · 5 unmodified lines
6 getcallerpc-$SYSTARG-$OBJTYPE.$O\6 getcallerpc-$SYSTARG-$OBJTYPE.$O\
7 getwd-posix.$O\7 getwd-posix.$O\
8 sbrk-posix.$O\8 sbrk-posix.$O\
9 isnan-posix.$O\
libinterp/math.c+1−1
@@ -274,7 +274,7 @@ Math_isnan(void *fp) · 273 unmodified lines
274 274
275 f = fp;275 f = fp;
276 276
277 *f->ret = isnan(f->x);277 *f->ret = isNaN(f->x);
278}278}
279 279
280void280void
libmath/mkfile+0−1
@@ -48,7 +48,6 @@ OFILES=\ · 47 unmodified lines
48 s_finite.$O\48 s_finite.$O\
49 s_floor.$O\49 s_floor.$O\
50 s_ilogb.$O\50 s_ilogb.$O\
51 s_isnan.$O\
52 s_log1p.$O\51 s_log1p.$O\
53 s_nextafter.$O\52 s_nextafter.$O\
54 s_rint.$O\53 s_rint.$O\
limbo/nodes.c+1−1
@@ -1045,7 +1045,7 @@ foldr(Node *n) · 1044 unmodified lines
1045 n->left = nil;1045 n->left = nil;
1046 n->right = nil;1046 n->right = nil;
1047 1047
1048 if(isnan(rv))1048 if(isNaN(rv))
1049 rv = canonnan;1049 rv = canonnan;
1050 1050
1051 n->rval = rv;1051 n->rval = rv;