| .. | |||||
| __ffs.h | |||||
| __fls.h | |||||
| arch_hweight.h | |||||
| atomic.h | |||||
| builtin-__ffs.h | |||||
| builtin-__fls.h | |||||
| builtin-ffs.h | |||||
| builtin-fls.h | |||||
| const_hweight.h | |||||
| count_zeros.h | |||||
| ext2-atomic-setbit.h | |||||
| ext2-atomic.h | |||||
| ffs.h | |||||
| ffz.h | |||||
| find.h | |||||
| fls.h | |||||
| fls64.h | |||||
| hweight.h | |||||
| le.h | |||||
| lock.h | |||||
| non-atomic.h | |||||
| sched.h |
| Server IP : 103.169.32.36 / Your IP : 216.73.217.13 Web Server : Apache System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : apache ( 48) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/modules/3.10.0-1160.119.1.el7.x86_64/build/include/asm-generic/bitops/ |
Upload File : |
#ifndef _ASM_GENERIC_BITOPS_SCHED_H_
#define _ASM_GENERIC_BITOPS_SCHED_H_
#include <linux/compiler.h> /* unlikely() */
#include <asm/types.h>
/*
* Every architecture must define this function. It's the fastest
* way of searching a 100-bit bitmap. It's guaranteed that at least
* one of the 100 bits is cleared.
*/
static inline int sched_find_first_bit(const unsigned long *b)
{
#if BITS_PER_LONG == 64
if (b[0])
return __ffs(b[0]);
return __ffs(b[1]) + 64;
#elif BITS_PER_LONG == 32
if (b[0])
return __ffs(b[0]);
if (b[1])
return __ffs(b[1]) + 32;
if (b[2])
return __ffs(b[2]) + 64;
return __ffs(b[3]) + 96;
#else
#error BITS_PER_LONG not defined
#endif
}
#endif /* _ASM_GENERIC_BITOPS_SCHED_H_ */
| .. | |||||
| __ffs.h | |||||
| __fls.h | |||||
| arch_hweight.h | |||||
| atomic.h | |||||
| builtin-__ffs.h | |||||
| builtin-__fls.h | |||||
| builtin-ffs.h | |||||
| builtin-fls.h | |||||
| const_hweight.h | |||||
| count_zeros.h | |||||
| ext2-atomic-setbit.h | |||||
| ext2-atomic.h | |||||
| ffs.h | |||||
| ffz.h | |||||
| find.h | |||||
| fls.h | |||||
| fls64.h | |||||
| hweight.h | |||||
| le.h | |||||
| lock.h | |||||
| non-atomic.h | |||||
| sched.h |