From: Vignesh R Date: Tue, 5 Feb 2019 05:59:16 +0000 (+0530) Subject: sh: bitops: add hweight*() macros X-Git-Tag: v2019.04-rc1~2^2~13 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ce13c19f4cb4bfd24c3c213d3eb9ad86b2c4b91b;p=oweals%2Fu-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 */