xref: /linux/arch/loongarch/include/asm/bitops.h (revision a36e9f5cfe9eb3a1dce8769c7058251c42705357)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
4  */
5 #ifndef _ASM_BITOPS_H
6 #define _ASM_BITOPS_H
7 
8 #include <linux/compiler.h>
9 
10 #ifndef _LINUX_BITOPS_H
11 #error only <linux/bitops.h> can be included directly
12 #endif
13 
14 #include <asm/barrier.h>
15 
16 #include <asm-generic/bitops/builtin-ffs.h>
17 #include <asm-generic/bitops/builtin-fls.h>
18 #include <asm-generic/bitops/builtin-__ffs.h>
19 #include <asm-generic/bitops/builtin-__fls.h>
20 
21 #include <asm-generic/bitops/ffz.h>
22 #include <asm-generic/bitops/fls64.h>
23 
24 #include <asm-generic/bitops/sched.h>
25 #include <asm-generic/bitops/hweight.h>
26 
27 #include <asm-generic/bitops/atomic.h>
28 #include <asm-generic/bitops/non-atomic.h>
29 #include <asm-generic/bitops/lock.h>
30 #include <asm-generic/bitops/le.h>
31 #include <asm-generic/bitops/ext2-atomic.h>
32 
33 #endif /* _ASM_BITOPS_H */
34