]> err.no Git - linux-2.6/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)
commit176d8b0c2709e764d491e63a0c1b3a3e1459fcf8
treefd45cfce91c9fc75b4383fe0b62f77febf875c6c
parentc1226a005ec400e966f4993dfcc0e99fd7baa6a1
[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]