]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commite02dad685a861855ae3e3f8bb807c7cb40a10e6c
tree7c69ee952fae6209b7e760c1b7de83e2d9f05d25
parent31863bdfa2fe85414be04f4136aea0db7d317be5
[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]