[PATCH] bitops: generic __ffs()
authorAkinobu Mita <mita@miraclelinux.com>
Sun, 26 Mar 2006 09:39:08 +0000 (01:39 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 26 Mar 2006 16:57:10 +0000 (08:57 -0800)
commitc1226a005ec400e966f4993dfcc0e99fd7baa6a1
tree7c69ee952fae6209b7e760c1b7de83e2d9f05d25
parent4117b02132d1cf96a3e1c57148e302c4801c974d
[PATCH] bitops: generic __ffs()

This patch introduces the C-language equivalent of the function: unsigned long
__ffs(unsigned long word);

In include/asm-generic/bitops/__ffs.h

This code largely copied from: include/asm-sparc/bitops.h

Signed-off-by: Akinobu Mita <mita@miraclelinux.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-generic/bitops/__ffs.h [new file with mode: 0644]