patch-2.2.17 linux/include/asm-alpha/bitops.h
Next file: linux/include/asm-alpha/unistd.h
Previous file: linux/fs/umsdos/namei.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Mon Sep 4 18:39:28 2000
- Orig file:
v2.2.16/include/asm-alpha/bitops.h
- Orig date:
Mon Sep 4 18:37:13 2000
diff -u --recursive --new-file v2.2.16/include/asm-alpha/bitops.h linux/include/asm-alpha/bitops.h
@@ -271,6 +271,8 @@
tmp = *p;
found_first:
tmp |= ~0UL << size;
+ if (tmp == ~0UL) /* Are any bits zero? */
+ return result + size; /* Nope. */
found_middle:
return result + ffz(tmp);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)