summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/spmath/fpbits.h
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1998-07-02 19:06:04 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1998-07-02 19:06:04 +0000
commit186df561f20e8ff3f8c74f3f4ef6ac29f67485e2 (patch)
tree8e23f01a9975fe3c59d7ee922be9e679137c65e3 /sys/arch/hppa/spmath/fpbits.h
parent387f724d77fa7589fc76165f07621db9817fb9b1 (diff)
ansi and fancy gcc
Diffstat (limited to 'sys/arch/hppa/spmath/fpbits.h')
-rw-r--r--sys/arch/hppa/spmath/fpbits.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/hppa/spmath/fpbits.h b/sys/arch/hppa/spmath/fpbits.h
index cfa8dffe684..d7f416ffb9a 100644
--- a/sys/arch/hppa/spmath/fpbits.h
+++ b/sys/arch/hppa/spmath/fpbits.h
@@ -1,3 +1,5 @@
+/* $OpenBSD: fpbits.h,v 1.3 1998/07/02 19:05:28 mickey Exp $ */
+
/*
* Copyright 1996 1995 by Open Software Foundation, Inc.
* All Rights Reserved
@@ -73,5 +75,6 @@
((object) & (((unsigned)-1 >> (HOSTWDSZ-len)) << (HOSTWDSZ-start-len)))
#define Bitfield_deposit(value,start,len,object) object = \
- ((object) & ~(((unsigned)-1 >> (HOSTWDSZ-len)) << (HOSTWDSZ-start-len))) | \
- (((value) & ((unsigned)-1 >> (HOSTWDSZ-len))) << (HOSTWDSZ-start-len))
+ ((object) & ~(((unsigned)-1 >> (HOSTWDSZ-(len))) << (HOSTWDSZ-(start)-(len)))) | \
+ (((value) & ((unsigned)-1 >> (HOSTWDSZ-(len)))) << (HOSTWDSZ-(start)-(len)))
+