2 * (C) Copyright 2011, Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
4 * SPDX-License-Identifier: GPL-2.0+
7 #ifndef __ASM_OPENRISC_BITOPS_H
8 #define __ASM_OPENRISC_BITOPS_H
11 #include <asm/bitops/fls.h>
13 #include <asm/bitops/ffs.h>
15 #include <asm-generic/bitops/__fls.h>
16 #include <asm-generic/bitops/fls64.h>
17 #include <asm-generic/bitops/__ffs.h>
19 #define hweight32(x) generic_hweight32(x)
20 #define hweight16(x) generic_hweight16(x)
21 #define hweight8(x) generic_hweight8(x)
23 #endif /* __ASM_GENERIC_BITOPS_H */