x86, UML: remove x86-specific implementations of find_first_bit
[linux-2.6/mini2440.git] / include / asm-x86 / bitops_64.h
blobcb23122d23f1b091e02fb0fd057c7e6339bb69a1
1 #ifndef _X86_64_BITOPS_H
2 #define _X86_64_BITOPS_H
4 /*
5 * Copyright 1992, Linus Torvalds.
6 */
7 static inline void set_bit_string(unsigned long *bitmap, unsigned long i,
8 int len)
10 unsigned long end = i + len;
11 while (i < end) {
12 __set_bit(i, bitmap);
13 i++;
17 #ifdef __KERNEL__
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>
29 #ifdef __KERNEL__
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 */