summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorwiz <wiz@NetBSD.org>2002-05-26 15:04:08 +0000
committerwiz <wiz@NetBSD.org>2002-05-26 15:04:08 +0000
commitbf5ec17026aa752a8cdef77dd96f9786e4d121c6 (patch)
treec25b2f46baf1c42ca3215bd76bff896904404b7a /lib/libc/stdlib
parente3e4fede441f72b2bb070c016a1145bdb4d5e63a (diff)
Remove #ifdef Bad_float_h and #ifndef __STDC__ parts (unneeded).
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/strtod.c58
1 files changed, 3 insertions, 55 deletions
diff --git a/lib/libc/stdlib/strtod.c b/lib/libc/stdlib/strtod.c
index 2238dae84f4..e2b9c565aa2 100644
--- a/lib/libc/stdlib/strtod.c
+++ b/lib/libc/stdlib/strtod.c
@@ -1,4 +1,4 @@
-/* $NetBSD: strtod.c,v 1.39 2002/01/28 00:10:04 kleink Exp $ */
+/* $NetBSD: strtod.c,v 1.40 2002/05/26 15:04:08 wiz Exp $ */
/****************************************************************
*
@@ -93,7 +93,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: strtod.c,v 1.39 2002/01/28 00:10:04 kleink Exp $");
+__RCSID("$NetBSD: strtod.c,v 1.40 2002/05/26 15:04:08 wiz Exp $");
#endif /* LIBC_SCCS and not lint */
#define Unsigned_Shifts
@@ -158,49 +158,8 @@ extern void *MALLOC(size_t);
#include "ctype.h"
#include "errno.h"
-
-#ifdef Bad_float_h
-#undef __STDC__
-#ifdef IEEE_BIG_ENDIAN
-#define IEEE_ARITHMETIC
-#endif
-#ifdef IEEE_LITTLE_ENDIAN
-#define IEEE_ARITHMETIC
-#endif
-
-#ifdef IEEE_ARITHMETIC
-#define DBL_DIG 15
-#define DBL_MAX_10_EXP 308
-#define DBL_MAX_EXP 1024
-#define FLT_RADIX 2
-#define FLT_ROUNDS 1
-#define DBL_MAX 1.7976931348623157e+308
-#endif
-
-#ifdef IBM
-#define DBL_DIG 16
-#define DBL_MAX_10_EXP 75
-#define DBL_MAX_EXP 63
-#define FLT_RADIX 16
-#define FLT_ROUNDS 0
-#define DBL_MAX 7.2370055773322621e+75
-#endif
-
-#ifdef VAX
-#define DBL_DIG 16
-#define DBL_MAX_10_EXP 38
-#define DBL_MAX_EXP 127
-#define FLT_RADIX 2
-#define FLT_ROUNDS 1
-#define DBL_MAX 1.7014118346046923e+38
-#endif
-
-#ifndef LONG_MAX
-#define LONG_MAX 2147483647
-#endif
-#else
#include "float.h"
-#endif
+
#ifndef __MATH_H__
#include "math.h"
#endif
@@ -1488,18 +1447,7 @@ strtod
if (e1 > DBL_MAX_10_EXP) {
ovfl:
errno = ERANGE;
-#ifdef __STDC__
value(rv) = HUGE_VAL;
-#else
- /* Can't trust HUGE_VAL */
-#ifdef IEEE_Arith
- word0(rv) = Exp_mask;
- word1(rv) = 0;
-#else
- word0(rv) = Big0;
- word1(rv) = Big1;
-#endif
-#endif
if (bd0)
goto retfree;
goto ret;