summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-02-08 17:31:45 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-02-08 17:31:45 +0000
commit83a15565411bc4920824b5a39896ee80231a742f (patch)
treeb5722d172fc0007daeb92ed093684720c5e637ff /lib
parent92161ffe3f7f5280ff22337d6ed619a157a8210c (diff)
16 byte align for performance, as on other architectures
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/arch/amd64/gen/infinity.c6
-rw-r--r--lib/libc/arch/x86_64/gen/infinity.c6
2 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/arch/amd64/gen/infinity.c b/lib/libc/arch/amd64/gen/infinity.c
index 8c7eb66d407..d1c2aa9a2f4 100644
--- a/lib/libc/arch/amd64/gen/infinity.c
+++ b/lib/libc/arch/amd64/gen/infinity.c
@@ -1,5 +1,5 @@
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: infinity.c,v 1.1 2004/01/28 01:44:45 mickey Exp $";
+static char rcsid[] = "$OpenBSD: infinity.c,v 1.2 2004/02/08 17:31:44 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
/* infinity.c */
@@ -7,4 +7,6 @@ static char rcsid[] = "$OpenBSD: infinity.c,v 1.1 2004/01/28 01:44:45 mickey Exp
#include <math.h>
/* bytes for +Infinity on a 387 */
-char __infinity[] = { 0, 0, 0, 0, 0, 0, (char)0xf0, 0x7f };
+char __infinity[] __attribute__((__aligned__(sizeof(double)))) =
+ { 0, 0, 0, 0, 0, 0, (char)0xf0, 0x7f };
+
diff --git a/lib/libc/arch/x86_64/gen/infinity.c b/lib/libc/arch/x86_64/gen/infinity.c
index 8c7eb66d407..d1c2aa9a2f4 100644
--- a/lib/libc/arch/x86_64/gen/infinity.c
+++ b/lib/libc/arch/x86_64/gen/infinity.c
@@ -1,5 +1,5 @@
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: infinity.c,v 1.1 2004/01/28 01:44:45 mickey Exp $";
+static char rcsid[] = "$OpenBSD: infinity.c,v 1.2 2004/02/08 17:31:44 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
/* infinity.c */
@@ -7,4 +7,6 @@ static char rcsid[] = "$OpenBSD: infinity.c,v 1.1 2004/01/28 01:44:45 mickey Exp
#include <math.h>
/* bytes for +Infinity on a 387 */
-char __infinity[] = { 0, 0, 0, 0, 0, 0, (char)0xf0, 0x7f };
+char __infinity[] __attribute__((__aligned__(sizeof(double)))) =
+ { 0, 0, 0, 0, 0, 0, (char)0xf0, 0x7f };
+