[RFC PATCH v4 10/40] bitops: Document the difference in indexing between fls() and __fls()

2013-09-25 Thread Srivatsa S. Bhat
fls() indexes the bits starting with 1, ie., from 1 to BITS_PER_LONG whereas __fls() uses a zero-based indexing scheme (0 to BITS_PER_LONG - 1). Add comments to document this important difference. Signed-off-by: Srivatsa S. Bhat --- arch/x86/include/asm/bitops.h |4

[RFC PATCH v4 10/40] bitops: Document the difference in indexing between fls() and __fls()

2013-09-25 Thread Srivatsa S. Bhat
fls() indexes the bits starting with 1, ie., from 1 to BITS_PER_LONG whereas __fls() uses a zero-based indexing scheme (0 to BITS_PER_LONG - 1). Add comments to document this important difference. Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- arch/x86/include/asm/bitops.h