summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2001-10-06 15:58:54 +0000
committerdfr <dfr@FreeBSD.org>2001-10-06 15:58:54 +0000
commitbfef499fd2d182aa6ede7aaffdb0c4b472b37197 (patch)
treea18915cca38276d02644c40e6e55f600452386b9 /lib/libc/stdlib
parent9aa18339c5246d3f5895776f35361b9fabc420d1 (diff)
downloadFreeBSD-src-bfef499fd2d182aa6ede7aaffdb0c4b472b37197.zip
FreeBSD-src-bfef499fd2d182aa6ede7aaffdb0c4b472b37197.tar.gz
Make this work on ia64. I have no idea why it works on alpha - it
shouldn't.
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/strtod.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libc/stdlib/strtod.c b/lib/libc/stdlib/strtod.c
index f8ed1c3..819d200 100644
--- a/lib/libc/stdlib/strtod.c
+++ b/lib/libc/stdlib/strtod.c
@@ -123,7 +123,7 @@ static char sccsid[] = "@(#)strtod.c 8.1 (Berkeley) 6/4/93";
* FLT_RADIX, FLT_ROUNDS, and DBL_MAX.
*/
-#if defined(i386) || defined(mips) && defined(MIPSEL)
+#if defined(i386) || (defined(mips) && defined(MIPSEL)) || defined(__ia64__)
#define IEEE_8087
#else
#define IEEE_MC68k
@@ -218,8 +218,14 @@ Exactly one of IEEE_8087, IEEE_MC68k, VAX, or IBM should be defined.
#endif
#ifdef IEEE_8087
+#ifdef __i386__
#define word0(x) ((unsigned long *)&x)[1]
#define word1(x) ((unsigned long *)&x)[0]
+#endif
+#ifdef __ia64__
+#define word0(x) ((unsigned int *)&x)[1]
+#define word1(x) ((unsigned int *)&x)[0]
+#endif
#else
#define word0(x) ((unsigned long *)&x)[0]
#define word1(x) ((unsigned long *)&x)[1]
OpenPOWER on IntegriCloud