summaryrefslogtreecommitdiff
path: root/arch/sh
diff options
context:
space:
mode:
authorVignesh R <vigneshr@ti.com>2019-02-05 11:29:16 +0530
committerJagan Teki <jagan@amarulasolutions.com>2019-02-07 15:33:21 +0530
commitce13c19f4cb4bfd24c3c213d3eb9ad86b2c4b91b (patch)
tree25b795e464fe42759903f4946f1d988edfe60f26 /arch/sh
parent6430eea639ed9ca967764a0ee113fa1c53619356 (diff)
downloadu-boot-ce13c19f4cb4bfd24c3c213d3eb9ad86b2c4b91b.tar.gz
u-boot-ce13c19f4cb4bfd24c3c213d3eb9ad86b2c4b91b.tar.bz2
u-boot-ce13c19f4cb4bfd24c3c213d3eb9ad86b2c4b91b.zip
sh: bitops: add hweight*() macros
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>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/include/asm/bitops.h4
1 files changed, 4 insertions, 0 deletions
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 */