]> err.no Git - linux-2.6/commit
[PATCH] bitops: generic ffs()
authorAkinobu Mita <mita@miraclelinux.com>
Sun, 26 Mar 2006 09:39:12 +0000 (01:39 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 26 Mar 2006 16:57:11 +0000 (08:57 -0800)
commit09020adb61416c4307de35941a9725a5e33d9beb
tree1bce6f1c62a2960e1442913f93727980ec1dfa0b
parent6d29ea23da033f46ac4ab359d46650a7f7474611
[PATCH] bitops: generic ffs()

This patch introduces the C-language equivalent of the function: int ffs(int
x);

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

This code largely copied from: include/linux/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]