Merge tag 'iommu-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
[linux/fpc-iii.git] / include / asm-generic / bitops.h
blobdf9b5bc3d2827fa5732fb072a30154a10dce0471
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_GENERIC_BITOPS_H
3 #define __ASM_GENERIC_BITOPS_H
5 /*
6 * For the benefit of those who are trying to port Linux to another
7 * architecture, here are some C-language equivalents. They should
8 * generate reasonable code, so take a look at what your compiler spits
9 * out before rolling your own buggy implementation in assembly language.
11 * C language equivalents written by Theodore Ts'o, 9/26/92
14 #include <linux/irqflags.h>
15 #include <linux/compiler.h>
16 #include <asm/barrier.h>
18 #include <asm-generic/bitops/__ffs.h>
19 #include <asm-generic/bitops/ffz.h>
20 #include <asm-generic/bitops/fls.h>
21 #include <asm-generic/bitops/__fls.h>
22 #include <asm-generic/bitops/fls64.h>
23 #include <asm-generic/bitops/find.h>
25 #ifndef _LINUX_BITOPS_H
26 #error only <linux/bitops.h> can be included directly
27 #endif
29 #include <asm-generic/bitops/sched.h>
30 #include <asm-generic/bitops/ffs.h>
31 #include <asm-generic/bitops/hweight.h>
32 #include <asm-generic/bitops/lock.h>
34 #include <asm-generic/bitops/atomic.h>
35 #include <asm-generic/bitops/non-atomic.h>
36 #include <asm-generic/bitops/le.h>
37 #include <asm-generic/bitops/ext2-atomic.h>
39 #endif /* __ASM_GENERIC_BITOPS_H */