/* SPDX-License-Identifier: GPL-2.0 */1#ifndef __TOOLS_ASM_GENERIC_BITOPS_H2#define __TOOLS_ASM_GENERIC_BITOPS_H34/*5* tools/ copied this from include/asm-generic/bitops.h, bit by bit as it needed6* some functions.7*8* For the benefit of those who are trying to port Linux to another9* architecture, here are some C-language equivalents. You should10* recode these in the native assembly language, if at all possible.11*12* C language equivalents written by Theodore Ts'o, 9/26/9213*/1415#include <asm-generic/bitops/__ffs.h>16#include <asm-generic/bitops/__ffz.h>17#include <asm-generic/bitops/fls.h>18#include <asm-generic/bitops/__fls.h>19#include <asm-generic/bitops/fls64.h>2021#ifndef _TOOLS_LINUX_BITOPS_H_22#error only <linux/bitops.h> can be included directly23#endif2425#include <asm-generic/bitops/hweight.h>2627#include <asm-generic/bitops/atomic.h>28#include <asm-generic/bitops/non-atomic.h>2930#endif /* __TOOLS_ASM_GENERIC_BITOPS_H */313233