Commit 7e009387 authored by Russell King (Oracle)'s avatar Russell King (Oracle)
Browse files

ARM: findbit: document ARMv5 bit offset calculation



Document the ARMv5 bit offset calculation code.

Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
parent 9fbed16c
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -172,10 +172,10 @@ ENDPROC(_find_next_bit_be)
.L_found:
#if __LINUX_ARM_ARCH__ >= 5
		rsb	r0, r3, #0
		and	r3, r3, r0
		clz	r3, r3
		rsb	r3, r3, #31
		add	r0, r2, r3
		and	r3, r3, r0		@ mask out lowest bit set
		clz	r3, r3			@ count high zero bits
		rsb	r3, r3, #31		@ offset of first set bit
		add	r0, r2, r3		@ add offset of first set bit
#else
		tst	r3, #0x0f
		addeq	r2, r2, #4