x86, UML: remove x86-specific implementations of find_first_bit
[sfrench/cifs-2.6.git] / include / asm-x86 / bitops_64.h
1 #ifndef _X86_64_BITOPS_H
2 #define _X86_64_BITOPS_H
3
4 /*
5  * Copyright 1992, Linus Torvalds.
6  */
7 static inline void set_bit_string(unsigned long *bitmap, unsigned long i,
8                                   int len)
9 {
10         unsigned long end = i + len;
11         while (i < end) {
12                 __set_bit(i, bitmap);
13                 i++;
14         }
15 }
16
17 #ifdef __KERNEL__
18
19 #include <asm-generic/bitops/sched.h>
20
21 #define ARCH_HAS_FAST_MULTIPLIER 1
22
23 #include <asm-generic/bitops/hweight.h>
24
25 #endif /* __KERNEL__ */
26
27 #include <asm-generic/bitops/fls64.h>
28
29 #ifdef __KERNEL__
30
31 #include <asm-generic/bitops/ext2-non-atomic.h>
32
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))
37
38 #include <asm-generic/bitops/minix.h>
39
40 #endif /* __KERNEL__ */
41
42 #endif /* _X86_64_BITOPS_H */