]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] bitops: generic ffz()
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)
commitc456ff6ab5a944b510d3a531b5f2d2ebe6f67c5d
treefd45cfce91c9fc75b4383fe0b62f77febf875c6c
parente02dad685a861855ae3e3f8bb807c7cb40a10e6c
[PATCH] bitops: generic ffz()

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

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

This code largely copied from: include/asm-parisc/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/ffz.h [new file with mode: 0644]