Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/powerpc/gen mark an asm statement volatile so ...
details: https://anonhg.NetBSD.org/src/rev/1175c5d597a1
branches: trunk
changeset: 474455:1175c5d597a1
user: danw <danw%NetBSD.org@localhost>
date: Wed Jul 07 01:53:38 1999 +0000
description:
mark an asm statement volatile so it doesn't get optimized out
diffstat:
lib/libc/arch/powerpc/gen/flt_rounds.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r f8b55f5cd82d -r 1175c5d597a1 lib/libc/arch/powerpc/gen/flt_rounds.c
--- a/lib/libc/arch/powerpc/gen/flt_rounds.c Wed Jul 07 01:52:26 1999 +0000
+++ b/lib/libc/arch/powerpc/gen/flt_rounds.c Wed Jul 07 01:53:38 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: flt_rounds.c,v 1.3 1998/08/09 12:43:33 tsubai Exp $ */
+/* $NetBSD: flt_rounds.c,v 1.4 1999/07/07 01:53:38 danw Exp $ */
#include <float.h>
@@ -15,6 +15,6 @@
double tmp;
int x;
- __asm("mffs %0; stfiwx %0,0,%1" : "=f"(tmp): "b"(&x));
+ __asm__ __volatile("mffs %0; stfiwx %0,0,%1" : "=f"(tmp): "b"(&x));
return map[x & 0x03];
}
Home |
Main Index |
Thread Index |
Old Index