/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_GENERIC_BITOPS_CONST_HWEIGHT_H_ #define _ASM_GENERIC_BITOPS_CONST_HWEIGHT_H_ /* * Compile time versions of __arch_hweightN() */ #define __const_hweight8(w) … #define __const_hweight16(w) … #define __const_hweight32(w) … #define __const_hweight64(w) … /* * Generic interface. */ #define hweight8(w) … #define hweight16(w) … #define hweight32(w) … #define hweight64(w) … /* * Interface for known constant arguments */ #define HWEIGHT8(w) … #define HWEIGHT16(w) … #define HWEIGHT32(w) … #define HWEIGHT64(w) … /* * Type invariant interface to the compile time constant hweight functions. */ #define HWEIGHT(w) … #endif /* _ASM_GENERIC_BITOPS_CONST_HWEIGHT_H_ */