diff options
author | das <das@FreeBSD.org> | 2007-12-16 21:15:09 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2007-12-16 21:15:09 +0000 |
commit | 60328a8764144807af6f8311d5403e1aa5cbb73c (patch) | |
tree | 072ded024466367b50cb5d7222353ffc982519ce /lib/libc | |
parent | 70cdf6a57447192c3b77090ed112c732882f95f3 (diff) | |
download | FreeBSD-src-60328a8764144807af6f8311d5403e1aa5cbb73c.zip FreeBSD-src-60328a8764144807af6f8311d5403e1aa5cbb73c.tar.gz |
Arrange so that the NaN returned by strtod("nan", NULL) is the same as
the NaN returned by strtod("nan()", NULL).
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/amd64/gd_qnan.h | 8 | ||||
-rw-r--r-- | lib/libc/arm/gd_qnan.h | 8 | ||||
-rw-r--r-- | lib/libc/i386/gd_qnan.h | 8 | ||||
-rw-r--r-- | lib/libc/ia64/gd_qnan.h | 8 | ||||
-rw-r--r-- | lib/libc/sparc64/gd_qnan.h | 22 |
5 files changed, 27 insertions, 27 deletions
diff --git a/lib/libc/amd64/gd_qnan.h b/lib/libc/amd64/gd_qnan.h index 17b439f..3992386 100644 --- a/lib/libc/amd64/gd_qnan.h +++ b/lib/libc/amd64/gd_qnan.h @@ -7,15 +7,15 @@ * $FreeBSD$ */ -#define f_QNAN 0xffc00000 +#define f_QNAN 0x7fc00000 #define d_QNAN0 0x0 -#define d_QNAN1 0xfff80000 +#define d_QNAN1 0x7ff80000 #define ld_QNAN0 0x0 #define ld_QNAN1 0xc0000000 -#define ld_QNAN2 0xffff +#define ld_QNAN2 0x7fff #define ld_QNAN3 0x0 #define ldus_QNAN0 0x0 #define ldus_QNAN1 0x0 #define ldus_QNAN2 0x0 #define ldus_QNAN3 0xc000 -#define ldus_QNAN4 0xffff +#define ldus_QNAN4 0x7fff diff --git a/lib/libc/arm/gd_qnan.h b/lib/libc/arm/gd_qnan.h index 13e26dd..8fa9edd 100644 --- a/lib/libc/arm/gd_qnan.h +++ b/lib/libc/arm/gd_qnan.h @@ -9,15 +9,15 @@ * $FreeBSD$ */ -#define f_QNAN 0xffc00000 +#define f_QNAN 0x7fc00000 #define d_QNAN0 0x0 -#define d_QNAN1 0xfff80000 +#define d_QNAN1 0x7ff80000 #define ld_QNAN0 0x0 #define ld_QNAN1 0xc0000000 -#define ld_QNAN2 0xffff +#define ld_QNAN2 0x7fff #define ld_QNAN3 0x0 #define ldus_QNAN0 0x0 #define ldus_QNAN1 0x0 #define ldus_QNAN2 0x0 #define ldus_QNAN3 0xc000 -#define ldus_QNAN4 0xffff +#define ldus_QNAN4 0x7fff diff --git a/lib/libc/i386/gd_qnan.h b/lib/libc/i386/gd_qnan.h index 17b439f..3992386 100644 --- a/lib/libc/i386/gd_qnan.h +++ b/lib/libc/i386/gd_qnan.h @@ -7,15 +7,15 @@ * $FreeBSD$ */ -#define f_QNAN 0xffc00000 +#define f_QNAN 0x7fc00000 #define d_QNAN0 0x0 -#define d_QNAN1 0xfff80000 +#define d_QNAN1 0x7ff80000 #define ld_QNAN0 0x0 #define ld_QNAN1 0xc0000000 -#define ld_QNAN2 0xffff +#define ld_QNAN2 0x7fff #define ld_QNAN3 0x0 #define ldus_QNAN0 0x0 #define ldus_QNAN1 0x0 #define ldus_QNAN2 0x0 #define ldus_QNAN3 0xc000 -#define ldus_QNAN4 0xffff +#define ldus_QNAN4 0x7fff diff --git a/lib/libc/ia64/gd_qnan.h b/lib/libc/ia64/gd_qnan.h index 17b439f..3992386 100644 --- a/lib/libc/ia64/gd_qnan.h +++ b/lib/libc/ia64/gd_qnan.h @@ -7,15 +7,15 @@ * $FreeBSD$ */ -#define f_QNAN 0xffc00000 +#define f_QNAN 0x7fc00000 #define d_QNAN0 0x0 -#define d_QNAN1 0xfff80000 +#define d_QNAN1 0x7ff80000 #define ld_QNAN0 0x0 #define ld_QNAN1 0xc0000000 -#define ld_QNAN2 0xffff +#define ld_QNAN2 0x7fff #define ld_QNAN3 0x0 #define ldus_QNAN0 0x0 #define ldus_QNAN1 0x0 #define ldus_QNAN2 0x0 #define ldus_QNAN3 0xc000 -#define ldus_QNAN4 0xffff +#define ldus_QNAN4 0x7fff diff --git a/lib/libc/sparc64/gd_qnan.h b/lib/libc/sparc64/gd_qnan.h index 5e2de53..7c9f929 100644 --- a/lib/libc/sparc64/gd_qnan.h +++ b/lib/libc/sparc64/gd_qnan.h @@ -7,15 +7,15 @@ * $FreeBSD$ */ -#define f_QNAN 0x7fffffff -#define d_QNAN0 0x7fffffff -#define d_QNAN1 0xffffffff -#define ld_QNAN0 0x7fffffff -#define ld_QNAN1 0xffffffff -#define ld_QNAN2 0xffffffff -#define ld_QNAN3 0xffffffff +#define f_QNAN 0x7fc00000 +#define d_QNAN0 0x7ff80000 +#define d_QNAN1 0x00000000 +#define ld_QNAN0 0x7fff8000 +#define ld_QNAN1 0x00000000 +#define ld_QNAN2 0x00000000 +#define ld_QNAN3 0x00000000 #define ldus_QNAN0 0x7fff -#define ldus_QNAN1 0xffff -#define ldus_QNAN2 0xffff -#define ldus_QNAN3 0xffff -#define ldus_QNAN4 0xffff +#define ldus_QNAN1 0x8000 +#define ldus_QNAN2 0x0000 +#define ldus_QNAN3 0x0000 +#define ldus_QNAN4 0x0000 |