summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/arch/sh/gen/infinity.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/arch/sh/gen/infinity.c b/lib/libc/arch/sh/gen/infinity.c
index a8006550db2..82de0736c11 100644
--- a/lib/libc/arch/sh/gen/infinity.c
+++ b/lib/libc/arch/sh/gen/infinity.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: infinity.c,v 1.1 2006/10/10 22:07:10 miod Exp $ */
+/* $OpenBSD: infinity.c,v 1.2 2006/11/12 21:18:28 otto Exp $ */
/* infinity.c */
@@ -6,4 +6,8 @@
/* bytes for +Infinity on a SH4 FPU (double precision) */
char __infinity[] __attribute__((__aligned__(sizeof(double)))) =
- { 0x7f, (char)0xf0, 0, 0, 0, 0, 0, 0 };
+#if _BYTE_ORDER == _LITTLE_ENDIAN
+ { 0, 0, 0, 0, 0, 0, (char)0xf0, 0x7f };
+#else
+ { 0x7f, (char)0xf0, 0, 0, 0, 0, 0, 0 }
+#endif