From: Vignesh R Date: Tue, 5 Feb 2019 05:59:16 +0000 (+0530) Subject: sh: bitops: add hweight*() macros X-Git-Url: http://git.dujemihanovic.xyz/%22/img/sics.gif/%22/static/git-favicon.png?a=commitdiff_plain;h=ce13c19f4cb4bfd24c3c213d3eb9ad86b2c4b91b;p=u-boot.git sh: bitops: add hweight*() macros Add hweight*() macros required for moving to new SF layer Signed-off-by: Vignesh R Reviewed-by: Jagan Teki --- diff --git a/arch/sh/include/asm/bitops.h b/arch/sh/include/asm/bitops.h index 8cb8385d76..765f28f116 100644 --- a/arch/sh/include/asm/bitops.h +++ b/arch/sh/include/asm/bitops.h @@ -153,6 +153,10 @@ static inline int ffs (int x) } #define PLATFORM_FFS +#define hweight32(x) generic_hweight32(x) +#define hweight16(x) generic_hweight16(x) +#define hweight8(x) generic_hweight8(x) + #endif /* __KERNEL__ */ #endif /* __ASM_SH_BITOPS_H */