diff options
author | Vignesh R | 2019-02-05 11:29:16 +0530 |
---|---|---|
committer | Jagan Teki | 2019-02-07 15:33:21 +0530 |
commit | ce13c19f4cb4bfd24c3c213d3eb9ad86b2c4b91b (patch) | |
tree | 25b795e464fe42759903f4946f1d988edfe60f26 /arch | |
parent | 6430eea639ed9ca967764a0ee113fa1c53619356 (diff) |
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')
-rw-r--r-- | arch/sh/include/asm/bitops.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sh/include/asm/bitops.h b/arch/sh/include/asm/bitops.h index 8cb8385d76d..765f28f116b 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 */ |