patch-2.1.19 linux/include/asm-sparc64/bitops.h
Next file: linux/include/asm-sparc64/bsderrno.h
Previous file: linux/include/asm-sparc64/a.out.h
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Mon Dec 30 12:00:02 1996
- Orig file:
v2.1.18/linux/include/asm-sparc64/bitops.h
- Orig date:
Mon Dec 30 15:39:15 1996
diff -u --recursive --new-file v2.1.18/linux/include/asm-sparc64/bitops.h linux/include/asm-sparc64/bitops.h
@@ -1,4 +1,4 @@
-/* $Id: bitops.h,v 1.5 1996/12/21 06:09:28 davem Exp $
+/* $Id: bitops.h,v 1.6 1996/12/26 15:36:49 davem Exp $
* bitops.h: Bit string operations on the V9.
*
* Copyright 1996 David S. Miller (davem@caip.rutgers.edu)
@@ -225,10 +225,10 @@
if (offset >= size)
return size;
size -= result;
- offset &= 31UL;
+ offset &= 63UL;
if(offset) {
tmp = *(p++);
- tmp |= __swab64(~0UL >> (64-offset));
+ tmp |= __swab64((~0UL >> (64-offset)));
if(size < 64)
goto found_first;
if(~tmp)
@@ -247,9 +247,9 @@
tmp = *p;
found_first:
- return result + ffz(__swab32(tmp) | (~0UL << size));
+ return result + ffz(__swab64(tmp) | (~0UL << size));
found_middle:
- return result + ffz(__swab32(tmp));
+ return result + ffz(__swab64(tmp));
}
#ifdef __KERNEL__
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov