summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-12-26 18:27:05 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-12-26 18:27:05 +0000
commit67bdfec6cec309abdc6396a543053b309ae1fb58 (patch)
tree68d0b35c7887d54e91ded594673ed852f9c59ded /sys/arch
parent68dad5365bbc066bf73dbca739d16321037c1a33 (diff)
Fix FPU_SET_CARRY()
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/m88k/fpu/fpu_arith.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/m88k/fpu/fpu_arith.h b/sys/arch/m88k/fpu/fpu_arith.h
index 59da9a0e174..b1504030403 100644
--- a/sys/arch/m88k/fpu/fpu_arith.h
+++ b/sys/arch/m88k/fpu/fpu_arith.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fpu_arith.h,v 1.1 2007/12/25 00:29:49 miod Exp $ */
+/* $OpenBSD: fpu_arith.h,v 1.2 2007/12/26 18:27:04 miod Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -87,6 +87,6 @@
asm volatile("subu.cio %0,%1,%2" : "=r"(r) : "r"(x), "r"(y))
#define FPU_GET_CARRY(r) asm volatile("addu.ci %0,r0,r0" : "=r"(r))
-#define FPU_SET_CARRY(v) asm volatile("subu.co r0,r0,%0" :: "r"(v))
+#define FPU_SET_CARRY(v) asm volatile("subu.co r0,r0,%0" :: "r"(!v))
#define FPU_SHL1_BY_ADD /* shift left 1 faster by ADDC than (a<<1)|(b>>31) */