patch-2.4.22 linux-2.4.22/include/asm-arm/bitops.h
Next file: linux-2.4.22/include/asm-arm/cpu-multi32.h
Previous file: linux-2.4.22/include/asm-arm/atomic.h
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
2003-08-25 04:44:43.000000000 -0700
-  Orig file: 
linux-2.4.21/include/asm-arm/bitops.h
-  Orig date: 
2001-08-12 11:14:00.000000000 -0700
diff -urN linux-2.4.21/include/asm-arm/bitops.h linux-2.4.22/include/asm-arm/bitops.h
@@ -88,7 +88,7 @@
  */
 static inline int test_bit(int nr, const void * addr)
 {
-    return ((unsigned char *) addr)[nr >> 3] & (1U << (nr & 7));
+    return (((unsigned char *) addr)[nr >> 3] >> (nr & 7)) & 1;
 }	
 
 /*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)