blob: c6dd28ecefc35debc8ef41577b495576e1aa4d96 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Alexey Brodkin544c5f52014-02-04 12:56:13 +04002/*
3 * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
Alexey Brodkin544c5f52014-02-04 12:56:13 +04004 */
5
6#ifndef __ASM_ARC_BITOPS_H
7#define __ASM_ARC_BITOPS_H
8
9/*
10 * hweightN: returns the hamming weight (i.e. the number
11 * of bits set) of a N-bit word
12 */
13
14#define hweight32(x) generic_hweight32(x)
15#define hweight16(x) generic_hweight16(x)
16#define hweight8(x) generic_hweight8(x)
17
Fabio Estevam6e8a1082015-11-05 12:43:36 -020018#include <asm-generic/bitops/fls.h>
19#include <asm-generic/bitops/__fls.h>
20#include <asm-generic/bitops/fls64.h>
21#include <asm-generic/bitops/__ffs.h>
22
Alexey Brodkin544c5f52014-02-04 12:56:13 +040023#endif /* __ASM_ARC_BITOPS_H */