Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __ASM_GENERIC_BITOPS_H
0003 #define __ASM_GENERIC_BITOPS_H
0004 
0005 /*
0006  * For the benefit of those who are trying to port Linux to another
0007  * architecture, here are some C-language equivalents.  They should
0008  * generate reasonable code, so take a look at what your compiler spits
0009  * out before rolling your own buggy implementation in assembly language.
0010  *
0011  * C language equivalents written by Theodore Ts'o, 9/26/92
0012  */
0013 
0014 #include <linux/irqflags.h>
0015 #include <linux/compiler.h>
0016 #include <asm/barrier.h>
0017 
0018 #include <asm-generic/bitops/__ffs.h>
0019 #include <asm-generic/bitops/ffz.h>
0020 #include <asm-generic/bitops/fls.h>
0021 #include <asm-generic/bitops/__fls.h>
0022 #include <asm-generic/bitops/fls64.h>
0023 
0024 #ifndef _LINUX_BITOPS_H
0025 #error only <linux/bitops.h> can be included directly
0026 #endif
0027 
0028 #include <asm-generic/bitops/sched.h>
0029 #include <asm-generic/bitops/ffs.h>
0030 #include <asm-generic/bitops/hweight.h>
0031 #include <asm-generic/bitops/lock.h>
0032 
0033 #include <asm-generic/bitops/atomic.h>
0034 #include <asm-generic/bitops/non-atomic.h>
0035 #include <asm-generic/bitops/le.h>
0036 #include <asm-generic/bitops/ext2-atomic.h>
0037 
0038 #endif /* __ASM_GENERIC_BITOPS_H */