Alexey Brodkin | 288aaac | 2014-02-04 12:56:13 +0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | #ifndef __ASM_ARC_BITOPS_H |
| 8 | #define __ASM_ARC_BITOPS_H |
| 9 | |
| 10 | /* |
| 11 | * hweightN: returns the hamming weight (i.e. the number |
| 12 | * of bits set) of a N-bit word |
| 13 | */ |
| 14 | |
| 15 | #define hweight32(x) generic_hweight32(x) |
| 16 | #define hweight16(x) generic_hweight16(x) |
| 17 | #define hweight8(x) generic_hweight8(x) |
| 18 | |
Fabio Estevam | 5d8e660 | 2015-11-05 12:43:36 -0200 | [diff] [blame^] | 19 | #include <asm-generic/bitops/fls.h> |
| 20 | #include <asm-generic/bitops/__fls.h> |
| 21 | #include <asm-generic/bitops/fls64.h> |
| 22 | #include <asm-generic/bitops/__ffs.h> |
| 23 | |
Alexey Brodkin | 288aaac | 2014-02-04 12:56:13 +0400 | [diff] [blame] | 24 | #endif /* __ASM_ARC_BITOPS_H */ |