Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/alpha/gen Fix unaligned accesses.
details: https://anonhg.NetBSD.org/src/rev/eec018a439c1
branches: trunk
changeset: 485327:eec018a439c1
user: erh <erh%NetBSD.org@localhost>
date: Tue Apr 25 05:54:33 2000 +0000
description:
Fix unaligned accesses.
diffstat:
lib/libc/arch/alpha/gen/infinity.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (16 lines):
diff -r 8be9ab7c83c3 -r eec018a439c1 lib/libc/arch/alpha/gen/infinity.c
--- a/lib/libc/arch/alpha/gen/infinity.c Tue Apr 25 05:38:56 2000 +0000
+++ b/lib/libc/arch/alpha/gen/infinity.c Tue Apr 25 05:54:33 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: infinity.c,v 1.3 1998/11/14 19:31:01 christos Exp $ */
+/* $NetBSD: infinity.c,v 1.4 2000/04/25 05:54:33 erh Exp $ */
/*
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
@@ -30,4 +30,5 @@
#include <math.h>
/* bytes for +Infinity on an Alpha (IEEE double format) */
-const char __infinity[] = { 0, 0, 0, 0, 0, 0, (char)0xf0, 0x7f };
+const char __infinity[] __attribute__((__aligned__(__alignof__(long)))) =
+ { 0, 0, 0, 0, 0, 0, (char)0xf0, 0x7f };
Home |
Main Index |
Thread Index |
Old Index