Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/arm32/gen Fix alignment of __nanf and __infini...
details: https://anonhg.NetBSD.org/src/rev/020d93010232
branches: trunk
changeset: 485088:020d93010232
user: mark <mark%NetBSD.org@localhost>
date: Tue Apr 18 22:07:17 2000 +0000
description:
Fix alignment of __nanf and __infinity. Fixes PR9925.
diffstat:
lib/libc/arch/arm32/gen/infinity.c | 4 ++--
lib/libc/arch/arm32/gen/nanf.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r 8194f0e873a3 -r 020d93010232 lib/libc/arch/arm32/gen/infinity.c
--- a/lib/libc/arch/arm32/gen/infinity.c Tue Apr 18 21:44:48 2000 +0000
+++ b/lib/libc/arch/arm32/gen/infinity.c Tue Apr 18 22:07:17 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: infinity.c,v 1.6 1999/06/21 22:31:32 tron Exp $ */
+/* $NetBSD: infinity.c,v 1.7 2000/04/18 22:07:17 mark Exp $ */
/*
* Copyright (c) 1996 Mark Brinicombe.
@@ -35,4 +35,4 @@
/* Bytes for +infinity on an arm32 (IEEE double precision) */
-const char __infinity[] = { 0, 0, (char)0xf0, 0x7f, 0, 0, 0, 0 };
+const char __infinity[] __attribute__((__aligned__(4))) = { 0, 0, (char)0xf0, 0x7f, 0, 0, 0, 0 };
diff -r 8194f0e873a3 -r 020d93010232 lib/libc/arch/arm32/gen/nanf.c
--- a/lib/libc/arch/arm32/gen/nanf.c Tue Apr 18 21:44:48 2000 +0000
+++ b/lib/libc/arch/arm32/gen/nanf.c Tue Apr 18 22:07:17 2000 +0000
@@ -1,8 +1,8 @@
-/* $NetBSD: nanf.c,v 1.1 1999/12/23 10:15:06 kleink Exp $ */
+/* $NetBSD: nanf.c,v 1.2 2000/04/18 22:07:17 mark Exp $ */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: nanf.c,v 1.1 1999/12/23 10:15:06 kleink Exp $");
+__RCSID("$NetBSD: nanf.c,v 1.2 2000/04/18 22:07:17 mark Exp $");
#endif /* not lint */
/* nanf.c */
@@ -10,4 +10,4 @@
#include <math.h>
/* bytes for quiet NaN on an arm32 (IEEE single precision) */
-const char __nanf[] = { 0, 0, (char)0xc0, 0x7f };
+const char __nanf[] __attribute__((__aligned__(4))) = { 0, 0, (char)0xc0, 0x7f };
Home |
Main Index |
Thread Index |
Old Index