Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __TOOLS_ASM_GENERIC_BITOPS_H
0003 #define __TOOLS_ASM_GENERIC_BITOPS_H
0004 
0005 /*
0006  * tools/ copied this from include/asm-generic/bitops.h, bit by bit as it needed
0007  * some functions.
0008  *
0009  * For the benefit of those who are trying to port Linux to another
0010  * architecture, here are some C-language equivalents.  You should
0011  * recode these in the native assembly language, if at all possible.
0012  *
0013  * C language equivalents written by Theodore Ts'o, 9/26/92
0014  */
0015 
0016 #include <asm-generic/bitops/__ffs.h>
0017 #include <asm-generic/bitops/__ffz.h>
0018 #include <asm-generic/bitops/fls.h>
0019 #include <asm-generic/bitops/__fls.h>
0020 #include <asm-generic/bitops/fls64.h>
0021 
0022 #ifndef _TOOLS_LINUX_BITOPS_H_
0023 #error only <linux/bitops.h> can be included directly
0024 #endif
0025 
0026 #include <asm-generic/bitops/hweight.h>
0027 
0028 #include <asm-generic/bitops/atomic.h>
0029 #include <asm-generic/bitops/non-atomic.h>
0030 
0031 #endif /* __TOOLS_ASM_GENERIC_BITOPS_H */