Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _ASM_GENERIC_BITOPS_ARCH_HWEIGHT_H_
0003 #define _ASM_GENERIC_BITOPS_ARCH_HWEIGHT_H_
0004 
0005 #include <asm/types.h>
0006 
0007 static inline unsigned int __arch_hweight32(unsigned int w)
0008 {
0009     return __sw_hweight32(w);
0010 }
0011 
0012 static inline unsigned int __arch_hweight16(unsigned int w)
0013 {
0014     return __sw_hweight16(w);
0015 }
0016 
0017 static inline unsigned int __arch_hweight8(unsigned int w)
0018 {
0019     return __sw_hweight8(w);
0020 }
0021 
0022 static inline unsigned long __arch_hweight64(__u64 w)
0023 {
0024     return __sw_hweight64(w);
0025 }
0026 #endif /* _ASM_GENERIC_BITOPS_HWEIGHT_H_ */