Commit | Line | Data |
---|---|---|
9858c60c AB |
1 | #ifndef __ASM_GENERIC_BITOPS_H |
2 | #define __ASM_GENERIC_BITOPS_H | |
1da177e4 LT |
3 | |
4 | /* | |
5 | * For the benefit of those who are trying to port Linux to another | |
6 | * architecture, here are some C-language equivalents. You should | |
7 | * recode these in the native assembly language, if at all possible. | |
9858c60c | 8 | * |
1da177e4 LT |
9 | * C language equivalents written by Theodore Ts'o, 9/26/92 |
10 | */ | |
11 | ||
9858c60c AB |
12 | #include <linux/irqflags.h> |
13 | #include <linux/compiler.h> | |
febdbfe8 | 14 | #include <asm/barrier.h> |
9858c60c | 15 | |
f51a05c1 AM |
16 | #include <asm-generic/bitops/__ffs.h> |
17 | #include <asm-generic/bitops/ffz.h> | |
18 | #include <asm-generic/bitops/fls.h> | |
9858c60c | 19 | #include <asm-generic/bitops/__fls.h> |
f51a05c1 AM |
20 | #include <asm-generic/bitops/fls64.h> |
21 | #include <asm-generic/bitops/find.h> | |
1da177e4 | 22 | |
0624517d JS |
23 | #ifndef _LINUX_BITOPS_H |
24 | #error only <linux/bitops.h> can be included directly | |
25 | #endif | |
26 | ||
f51a05c1 AM |
27 | #include <asm-generic/bitops/sched.h> |
28 | #include <asm-generic/bitops/ffs.h> | |
29 | #include <asm-generic/bitops/hweight.h> | |
26333576 | 30 | #include <asm-generic/bitops/lock.h> |
1da177e4 | 31 | |
9858c60c AB |
32 | #include <asm-generic/bitops/atomic.h> |
33 | #include <asm-generic/bitops/non-atomic.h> | |
861b5ae7 | 34 | #include <asm-generic/bitops/le.h> |
f51a05c1 | 35 | #include <asm-generic/bitops/ext2-atomic.h> |
1da177e4 | 36 | |
9858c60c | 37 | #endif /* __ASM_GENERIC_BITOPS_H */ |