diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/arch/amd64/gen/infinity.c | 6 | ||||
-rw-r--r-- | lib/libc/arch/x86_64/gen/infinity.c | 6 |
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 }; + |