1 #ifndef _X86_64_BITOPS_H
2 #define _X86_64_BITOPS_H
5 * Copyright 1992, Linus Torvalds.
7 static inline void set_bit_string(unsigned long *bitmap
, unsigned long i
,
10 unsigned long end
= i
+ len
;
19 #include <asm-generic/bitops/sched.h>
21 #define ARCH_HAS_FAST_MULTIPLIER 1
23 #include <asm-generic/bitops/hweight.h>
25 #endif /* __KERNEL__ */
27 #include <asm-generic/bitops/fls64.h>
31 #include <asm-generic/bitops/ext2-non-atomic.h>
33 #define ext2_set_bit_atomic(lock, nr, addr) \
34 test_and_set_bit((nr), (unsigned long *)(addr))
35 #define ext2_clear_bit_atomic(lock, nr, addr) \
36 test_and_clear_bit((nr), (unsigned long *)(addr))
38 #include <asm-generic/bitops/minix.h>
40 #endif /* __KERNEL__ */
42 #endif /* _X86_64_BITOPS_H */