]> Git Repo - u-boot.git/commitdiff
sh: bitops: add hweight*() macros
authorVignesh R <[email protected]>
Tue, 5 Feb 2019 05:59:16 +0000 (11:29 +0530)
committerJagan Teki <[email protected]>
Thu, 7 Feb 2019 10:03:21 +0000 (15:33 +0530)
Add hweight*() macros required for moving to new SF layer

Signed-off-by: Vignesh R <[email protected]>
Reviewed-by: Jagan Teki <[email protected]>
arch/sh/include/asm/bitops.h

index 8cb8385d76db5e7514f19c75f0d9bbfe6d479016..765f28f116bcdb1363ff9d00688219e8d35d6f52 100644 (file)
@@ -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 */
This page took 0.035826 seconds and 4 git commands to generate.