Commit 6fe4720e authored by Miles Bader's avatar Miles Bader Committed by Linus Torvalds

[PATCH] v850: Define find_first_bit

Signed-off-by: default avatarMiles Bader <miles@gnu.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 74106f79
......@@ -267,6 +267,12 @@ static __inline__ unsigned long find_next_bit(const unsigned long *addr,
return result + generic_ffs_for_find_next_bit(tmp);
}
/*
* find_first_bit - find the first set bit in a memory region
*/
#define find_first_bit(addr, size) \
find_next_bit((addr), (size), 0)
#define ffs(x) generic_ffs (x)
#define fls(x) generic_fls (x)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment