18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef __TOOLS_ASM_GENERIC_BITOPS_H
38c2ecf20Sopenharmony_ci#define __TOOLS_ASM_GENERIC_BITOPS_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci/*
68c2ecf20Sopenharmony_ci * tools/ copied this from include/asm-generic/bitops.h, bit by bit as it needed
78c2ecf20Sopenharmony_ci * some functions.
88c2ecf20Sopenharmony_ci *
98c2ecf20Sopenharmony_ci * For the benefit of those who are trying to port Linux to another
108c2ecf20Sopenharmony_ci * architecture, here are some C-language equivalents.  You should
118c2ecf20Sopenharmony_ci * recode these in the native assembly language, if at all possible.
128c2ecf20Sopenharmony_ci *
138c2ecf20Sopenharmony_ci * C language equivalents written by Theodore Ts'o, 9/26/92
148c2ecf20Sopenharmony_ci */
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci#include <asm-generic/bitops/__ffs.h>
178c2ecf20Sopenharmony_ci#include <asm-generic/bitops/__ffz.h>
188c2ecf20Sopenharmony_ci#include <asm-generic/bitops/fls.h>
198c2ecf20Sopenharmony_ci#include <asm-generic/bitops/__fls.h>
208c2ecf20Sopenharmony_ci#include <asm-generic/bitops/fls64.h>
218c2ecf20Sopenharmony_ci#include <asm-generic/bitops/find.h>
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci#ifndef _TOOLS_LINUX_BITOPS_H_
248c2ecf20Sopenharmony_ci#error only <linux/bitops.h> can be included directly
258c2ecf20Sopenharmony_ci#endif
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci#include <asm-generic/bitops/hweight.h>
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#include <asm-generic/bitops/atomic.h>
308c2ecf20Sopenharmony_ci#include <asm-generic/bitops/non-atomic.h>
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci#endif /* __TOOLS_ASM_GENERIC_BITOPS_H */
33