162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef _ASM_GENERIC_BITOPS_ARCH_HWEIGHT_H_ 362306a36Sopenharmony_ci#define _ASM_GENERIC_BITOPS_ARCH_HWEIGHT_H_ 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#include <asm/types.h> 662306a36Sopenharmony_ci 762306a36Sopenharmony_cistatic inline unsigned int __arch_hweight32(unsigned int w) 862306a36Sopenharmony_ci{ 962306a36Sopenharmony_ci return __sw_hweight32(w); 1062306a36Sopenharmony_ci} 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_cistatic inline unsigned int __arch_hweight16(unsigned int w) 1362306a36Sopenharmony_ci{ 1462306a36Sopenharmony_ci return __sw_hweight16(w); 1562306a36Sopenharmony_ci} 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_cistatic inline unsigned int __arch_hweight8(unsigned int w) 1862306a36Sopenharmony_ci{ 1962306a36Sopenharmony_ci return __sw_hweight8(w); 2062306a36Sopenharmony_ci} 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_cistatic inline unsigned long __arch_hweight64(__u64 w) 2362306a36Sopenharmony_ci{ 2462306a36Sopenharmony_ci return __sw_hweight64(w); 2562306a36Sopenharmony_ci} 2662306a36Sopenharmony_ci#endif /* _ASM_GENERIC_BITOPS_HWEIGHT_H_ */ 27