Commit
ce13c19f4cb4bfd24c3c213d3eb9ad86b2c4b91b
Exists in
smarc_8mq_lf_v2020.04
and in
12 other branches
8qm-imx_v2020.04_5.4.70_2.3.0, emb_lf_v2022.04, emb_lf_v2023.04, pitx_8mp_lf_v2020.04, smarc-8m-android-10.0.0_2.6.0, smarc-8m-android-11.0.0_2.0.0, smarc-8mp-android-11.0.0_2.0.0, smarc_8m-imx_v2019.04_4.19.35_1.1.0, smarc_8mm-imx_v2019.04_4.19.35_1.1.0, smarc_8mm-imx_v2020.04_5.4.24_2.1.0, smarc_8mp_lf_v2020.04, smarc_8mq-imx_v2020.04_5.4.24_2.1.0
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>
Showing
1 changed file
with
4 additions
and
0 deletions
Side-by-side Diff
... |
... |
@@ -153,6 +153,10 @@ |
153
|
153 |
} |
154
|
154 |
#define PLATFORM_FFS |
155
|
155 |
|
|
156 |
+#define hweight32(x) generic_hweight32(x) |
|
157 |
+#define hweight16(x) generic_hweight16(x) |
|
158 |
+#define hweight8(x) generic_hweight8(x) |
|
159 |
+ |
156
|
160 |
#endif /* __KERNEL__ */ |
157
|
161 |
|
158
|
162 |
#endif /* __ASM_SH_BITOPS_H */ |