ipv6: drop unused "dev" arg of icmpv6_send()
[linux-2.6/next.git] / tools / perf / util / include / linux / bitops.h
blob8d63116e9435be917354b94b42ef9e6c9d026caf
1 #ifndef _PERF_LINUX_BITOPS_H_
2 #define _PERF_LINUX_BITOPS_H_
4 #define __KERNEL__
6 #define CONFIG_GENERIC_FIND_NEXT_BIT
7 #define CONFIG_GENERIC_FIND_FIRST_BIT
8 #include "../../../../include/linux/bitops.h"
10 #undef __KERNEL__
12 static inline void set_bit(int nr, unsigned long *addr)
14 addr[nr / BITS_PER_LONG] |= 1UL << (nr % BITS_PER_LONG);
17 static __always_inline int test_bit(unsigned int nr, const unsigned long *addr)
19 return ((1UL << (nr % BITS_PER_LONG)) &
20 (((unsigned long *)addr)[nr / BITS_PER_LONG])) != 0;
23 unsigned long generic_find_next_zero_le_bit(const unsigned long *addr, unsigned
24 long size, unsigned long offset);
26 unsigned long generic_find_next_le_bit(const unsigned long *addr, unsigned
27 long size, unsigned long offset);
29 #endif