diff options
| author | niklas <> | 1996-03-19 23:15:14 +0000 | 
|---|---|---|
| committer | niklas <> | 1996-03-19 23:15:14 +0000 | 
| commit | b12abff2eedd6c25979b3dc8890ef07b15432ea8 (patch) | |
| tree | 2603354cf92c21ad3bdd387ed8be630a43b05f72 /src/lib/libc/stdlib/strtod.c | |
| parent | 83a23009542c2672b009a5ad496e0a28417a37f9 (diff) | |
| download | openbsd-b12abff2eedd6c25979b3dc8890ef07b15432ea8.tar.gz openbsd-b12abff2eedd6c25979b3dc8890ef07b15432ea8.tar.bz2 openbsd-b12abff2eedd6c25979b3dc8890ef07b15432ea8.zip  | |
From NetBSD: merge of 960317
Diffstat (limited to 'src/lib/libc/stdlib/strtod.c')
| -rw-r--r-- | src/lib/libc/stdlib/strtod.c | 16 | 
1 files changed, 14 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/strtod.c b/src/lib/libc/stdlib/strtod.c index b13fa128f5..f1c5463933 100644 --- a/src/lib/libc/stdlib/strtod.c +++ b/src/lib/libc/stdlib/strtod.c  | |||
| @@ -1,3 +1,6 @@ | |||
| 1 | /* $OpenBSD: strtod.c,v 1.2 1996/03/19 23:15:11 niklas Exp $ */ | ||
| 2 | /* $NetBSD: strtod.c,v 1.21 1996/02/16 21:19:29 mark Exp $ */ | ||
| 3 | |||
| 1 | /**************************************************************** | 4 | /**************************************************************** | 
| 2 | * | 5 | * | 
| 3 | * The author of this software is David M. Gay. | 6 | * The author of this software is David M. Gay. | 
| @@ -90,7 +93,7 @@ | |||
| 90 | */ | 93 | */ | 
| 91 | 94 | ||
| 92 | #if defined(LIBC_SCCS) && !defined(lint) | 95 | #if defined(LIBC_SCCS) && !defined(lint) | 
| 93 | static char *rcsid = "$Id: strtod.c,v 1.1.1.1 1995/10/18 08:42:19 deraadt Exp $"; | 96 | static char *rcsid = "$OpenBSD: strtod.c,v 1.2 1996/03/19 23:15:11 niklas Exp $"; | 
| 94 | #endif /* LIBC_SCCS and not lint */ | 97 | #endif /* LIBC_SCCS and not lint */ | 
| 95 | 98 | ||
| 96 | #if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \ | 99 | #if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \ | 
| @@ -103,6 +106,15 @@ static char *rcsid = "$Id: strtod.c,v 1.1.1.1 1995/10/18 08:42:19 deraadt Exp $" | |||
| 103 | #endif | 106 | #endif | 
| 104 | #endif | 107 | #endif | 
| 105 | 108 | ||
| 109 | #ifdef __arm32__ | ||
| 110 | /* | ||
| 111 | * Although the CPU is little endian the FP has different | ||
| 112 | * byte and word endianness. The byte order is still little endian | ||
| 113 | * but the word order is big endian. | ||
| 114 | */ | ||
| 115 | #define IEEE_BIG_ENDIAN | ||
| 116 | #endif | ||
| 117 | |||
| 106 | #ifdef vax | 118 | #ifdef vax | 
| 107 | #define VAX | 119 | #define VAX | 
| 108 | #endif | 120 | #endif | 
| @@ -224,7 +236,7 @@ IBM should be defined. | |||
| 224 | * An alternative that might be better on some machines is | 236 | * An alternative that might be better on some machines is | 
| 225 | * #define Storeinc(a,b,c) (*a++ = b << 16 | c & 0xffff) | 237 | * #define Storeinc(a,b,c) (*a++ = b << 16 | c & 0xffff) | 
| 226 | */ | 238 | */ | 
| 227 | #if defined(IEEE_LITTLE_ENDIAN) + defined(VAX) | 239 | #if defined(IEEE_LITTLE_ENDIAN) + defined(VAX) + defined(__arm32__) | 
| 228 | #define Storeinc(a,b,c) (((unsigned short *)a)[1] = (unsigned short)b, \ | 240 | #define Storeinc(a,b,c) (((unsigned short *)a)[1] = (unsigned short)b, \ | 
| 229 | ((unsigned short *)a)[0] = (unsigned short)c, a++) | 241 | ((unsigned short *)a)[0] = (unsigned short)c, a++) | 
| 230 | #else | 242 | #else | 
