hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/lib/hweight.c
....@@ -10,7 +10,6 @@
1010 * The Hamming Weight of a number is the total number of bits set in it.
1111 */
1212
13
-#ifndef __HAVE_ARCH_SW_HWEIGHT
1413 unsigned int __sw_hweight32(unsigned int w)
1514 {
1615 #ifdef CONFIG_ARCH_HAS_FAST_MULTIPLIER
....@@ -27,7 +26,6 @@
2726 #endif
2827 }
2928 EXPORT_SYMBOL(__sw_hweight32);
30
-#endif
3129
3230 unsigned int __sw_hweight16(unsigned int w)
3331 {
....@@ -46,7 +44,6 @@
4644 }
4745 EXPORT_SYMBOL(__sw_hweight8);
4846
49
-#ifndef __HAVE_ARCH_SW_HWEIGHT
5047 unsigned long __sw_hweight64(__u64 w)
5148 {
5249 #if BITS_PER_LONG == 32
....@@ -69,4 +66,3 @@
6966 #endif
7067 }
7168 EXPORT_SYMBOL(__sw_hweight64);
72
-#endif