of: MSI: Simplify irqdomain lookup
[linux/fpc-iii.git] / tools / include / asm-generic / bitops / find.h
blob31f51547fcd4164f54a575c93b54b43e6a2f5ce9
1 #ifndef _TOOLS_LINUX_ASM_GENERIC_BITOPS_FIND_H_
2 #define _TOOLS_LINUX_ASM_GENERIC_BITOPS_FIND_H_
4 #ifndef find_next_bit
5 /**
6 * find_next_bit - find the next set bit in a memory region
7 * @addr: The address to base the search on
8 * @offset: The bitnumber to start searching at
9 * @size: The bitmap size in bits
11 * Returns the bit number for the next set bit
12 * If no bits are set, returns @size.
14 extern unsigned long find_next_bit(const unsigned long *addr, unsigned long
15 size, unsigned long offset);
16 #endif
18 #ifndef find_first_bit
20 /**
21 * find_first_bit - find the first set bit in a memory region
22 * @addr: The address to start the search at
23 * @size: The maximum number of bits to search
25 * Returns the bit number of the first set bit.
26 * If no bits are set, returns @size.
28 extern unsigned long find_first_bit(const unsigned long *addr,
29 unsigned long size);
31 #endif /* find_first_bit */
33 #endif /*_TOOLS_LINUX_ASM_GENERIC_BITOPS_FIND_H_ */