Skip to content
Snippets Groups Projects
Commit ce13c19f authored by Vignesh R's avatar Vignesh R Committed by Jagan Teki
Browse files

sh: bitops: add hweight*() macros


Add hweight*() macros required for moving to new SF layer

Signed-off-by: default avatarVignesh R <vigneshr@ti.com>
Reviewed-by: default avatarJagan Teki <jagan@openedev.com>
parent 6430eea6
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment