Stefan Kristiansson | ca9d3ab | 2011-11-26 19:04:49 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2011, Stefan Kristiansson <stefan.kristiansson@saunalahti.fi> |
| 3 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Stefan Kristiansson | ca9d3ab | 2011-11-26 19:04:49 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __ASM_OPENRISC_BITOPS_H |
| 8 | #define __ASM_OPENRISC_BITOPS_H |
| 9 | |
| 10 | #define PLATFORM_FLS |
| 11 | #include <asm/bitops/fls.h> |
| 12 | #define PLATFORM_FFS |
| 13 | #include <asm/bitops/ffs.h> |
| 14 | |
Fabio Estevam | 85dfd70 | 2015-11-05 12:43:32 -0200 | [diff] [blame] | 15 | #include <asm-generic/bitops/__fls.h> |
| 16 | #include <asm-generic/bitops/fls64.h> |
| 17 | #include <asm-generic/bitops/__ffs.h> |
| 18 | |
Stefan Kristiansson | f988224 | 2012-02-22 07:10:09 +0000 | [diff] [blame] | 19 | #define hweight32(x) generic_hweight32(x) |
| 20 | #define hweight16(x) generic_hweight16(x) |
| 21 | #define hweight8(x) generic_hweight8(x) |
| 22 | |
Stefan Kristiansson | ca9d3ab | 2011-11-26 19:04:49 +0000 | [diff] [blame] | 23 | #endif /* __ASM_GENERIC_BITOPS_H */ |