hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/x86/lib/hweight.S
....@@ -8,7 +8,7 @@
88 * unsigned int __sw_hweight32(unsigned int w)
99 * %rdi: w
1010 */
11
-ENTRY(__sw_hweight32)
11
+SYM_FUNC_START(__sw_hweight32)
1212
1313 #ifdef CONFIG_X86_64
1414 movl %edi, %eax # w
....@@ -32,11 +32,11 @@
3232 imull $0x01010101, %eax, %eax # w_tmp *= 0x01010101
3333 shrl $24, %eax # w = w_tmp >> 24
3434 __ASM_SIZE(pop,) %__ASM_REG(dx)
35
- ret
36
-ENDPROC(__sw_hweight32)
35
+ RET
36
+SYM_FUNC_END(__sw_hweight32)
3737 EXPORT_SYMBOL(__sw_hweight32)
3838
39
-ENTRY(__sw_hweight64)
39
+SYM_FUNC_START(__sw_hweight64)
4040 #ifdef CONFIG_X86_64
4141 pushq %rdi
4242 pushq %rdx
....@@ -65,7 +65,7 @@
6565
6666 popq %rdx
6767 popq %rdi
68
- ret
68
+ RET
6969 #else /* CONFIG_X86_32 */
7070 /* We're getting an u64 arg in (%eax,%edx): unsigned long hweight64(__u64 w) */
7171 pushl %ecx
....@@ -77,7 +77,7 @@
7777 addl %ecx, %eax # result
7878
7979 popl %ecx
80
- ret
80
+ RET
8181 #endif
82
-ENDPROC(__sw_hweight64)
82
+SYM_FUNC_END(__sw_hweight64)
8383 EXPORT_SYMBOL(__sw_hweight64)