| .. | .. |
|---|
| 8 | 8 | * unsigned int __sw_hweight32(unsigned int w) |
|---|
| 9 | 9 | * %rdi: w |
|---|
| 10 | 10 | */ |
|---|
| 11 | | -ENTRY(__sw_hweight32) |
|---|
| 11 | +SYM_FUNC_START(__sw_hweight32) |
|---|
| 12 | 12 | |
|---|
| 13 | 13 | #ifdef CONFIG_X86_64 |
|---|
| 14 | 14 | movl %edi, %eax # w |
|---|
| .. | .. |
|---|
| 32 | 32 | imull $0x01010101, %eax, %eax # w_tmp *= 0x01010101 |
|---|
| 33 | 33 | shrl $24, %eax # w = w_tmp >> 24 |
|---|
| 34 | 34 | __ASM_SIZE(pop,) %__ASM_REG(dx) |
|---|
| 35 | | - ret |
|---|
| 36 | | -ENDPROC(__sw_hweight32) |
|---|
| 35 | + RET |
|---|
| 36 | +SYM_FUNC_END(__sw_hweight32) |
|---|
| 37 | 37 | EXPORT_SYMBOL(__sw_hweight32) |
|---|
| 38 | 38 | |
|---|
| 39 | | -ENTRY(__sw_hweight64) |
|---|
| 39 | +SYM_FUNC_START(__sw_hweight64) |
|---|
| 40 | 40 | #ifdef CONFIG_X86_64 |
|---|
| 41 | 41 | pushq %rdi |
|---|
| 42 | 42 | pushq %rdx |
|---|
| .. | .. |
|---|
| 65 | 65 | |
|---|
| 66 | 66 | popq %rdx |
|---|
| 67 | 67 | popq %rdi |
|---|
| 68 | | - ret |
|---|
| 68 | + RET |
|---|
| 69 | 69 | #else /* CONFIG_X86_32 */ |
|---|
| 70 | 70 | /* We're getting an u64 arg in (%eax,%edx): unsigned long hweight64(__u64 w) */ |
|---|
| 71 | 71 | pushl %ecx |
|---|
| .. | .. |
|---|
| 77 | 77 | addl %ecx, %eax # result |
|---|
| 78 | 78 | |
|---|
| 79 | 79 | popl %ecx |
|---|
| 80 | | - ret |
|---|
| 80 | + RET |
|---|
| 81 | 81 | #endif |
|---|
| 82 | | -ENDPROC(__sw_hweight64) |
|---|
| 82 | +SYM_FUNC_END(__sw_hweight64) |
|---|
| 83 | 83 | EXPORT_SYMBOL(__sw_hweight64) |
|---|