]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sh: bitops: add hweight*() macros
authorVignesh R <vigneshr@ti.com>
Tue, 5 Feb 2019 05:59:16 +0000 (11:29 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
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 <vigneshr@ti.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
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 */