patch-2.1.124 linux/include/asm-sparc/bitops.h
Next file: linux/include/asm-sparc/ebus.h
Previous file: linux/include/asm-ppc/unistd.h
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Sun Oct 4 10:22:44 1998
- Orig file:
v2.1.123/linux/include/asm-sparc/bitops.h
- Orig date:
Thu Aug 6 14:06:34 1998
diff -u --recursive --new-file v2.1.123/linux/include/asm-sparc/bitops.h linux/include/asm-sparc/bitops.h
@@ -1,4 +1,4 @@
-/* $Id: bitops.h,v 1.51 1998/07/26 03:05:37 davem Exp $
+/* $Id: bitops.h,v 1.54 1998/09/21 05:07:34 jj Exp $
* bitops.h: Bit string operations on the Sparc.
*
* Copyright 1995 David S. Miller (davem@caip.rutgers.edu)
@@ -108,7 +108,7 @@
: "0" (mask), "r" (ADDR)
: "g3", "g4", "g5", "g7", "cc");
- return mask;
+ return mask != 0;
}
extern __inline__ void set_bit(unsigned long nr, __SMPVOL void *addr)
@@ -131,7 +131,7 @@
: "0" (mask), "r" (ADDR)
: "g3", "g4", "g5", "g7", "cc");
- return mask;
+ return mask != 0;
}
extern __inline__ void clear_bit(unsigned long nr, __SMPVOL void *addr)
@@ -154,7 +154,7 @@
: "0" (mask), "r" (ADDR)
: "g3", "g4", "g5", "g7", "cc");
- return mask;
+ return mask != 0;
}
extern __inline__ void change_bit(unsigned long nr, __SMPVOL void *addr)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov