1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
|
.text
.align 5, 0x90
.globl ___gmpn_popcount
___gmpn_popcount:
mov %esi, %r8d
and $7, %r8d
.byte 0xf3,0x48,0x0f,0xb8,0x07
xor %ecx, %ecx
lea Ltab(%rip), %r9
movslq (%r9,%r8,4), %r8
add %r9, %r8
jmp *%r8
L3: .byte 0xf3,0x4c,0x0f,0xb8,0x57,0x08
.byte 0xf3,0x4c,0x0f,0xb8,0x5f,0x10
add $24, %rdi
sub $8, %rsi
jg Le34
add %r10, %rax
add %r11, %rax
Ls1:
ret
L1: sub $8, %rsi
jle Ls1
.byte 0xf3,0x4c,0x0f,0xb8,0x47,0x08
.byte 0xf3,0x4c,0x0f,0xb8,0x4f,0x10
add $8, %rdi
jmp Le12
L7: .byte 0xf3,0x4c,0x0f,0xb8,0x57,0x08
.byte 0xf3,0x4c,0x0f,0xb8,0x5f,0x10
add $-8, %rdi
jmp Le07
L0: .byte 0xf3,0x48,0x0f,0xb8,0x4f,0x08
.byte 0xf3,0x4c,0x0f,0xb8,0x57,0x10
.byte 0xf3,0x4c,0x0f,0xb8,0x5f,0x18
jmp Le07
L4: .byte 0xf3,0x48,0x0f,0xb8,0x4f,0x08
.byte 0xf3,0x4c,0x0f,0xb8,0x57,0x10
.byte 0xf3,0x4c,0x0f,0xb8,0x5f,0x18
add $32, %rdi
sub $8, %rsi
jle Lx4
.align 4, 0x90
Ltop:
Le34: .byte 0xf3,0x4c,0x0f,0xb8,0x07
.byte 0xf3,0x4c,0x0f,0xb8,0x4f,0x08
add %r10, %rcx
add %r11, %rax
Le12: .byte 0xf3,0x4c,0x0f,0xb8,0x57,0x10
.byte 0xf3,0x4c,0x0f,0xb8,0x5f,0x18
add %r8, %rcx
add %r9, %rax
Le07: .byte 0xf3,0x4c,0x0f,0xb8,0x47,0x20
.byte 0xf3,0x4c,0x0f,0xb8,0x4f,0x28
add %r10, %rcx
add %r11, %rax
Le56: .byte 0xf3,0x4c,0x0f,0xb8,0x57,0x30
.byte 0xf3,0x4c,0x0f,0xb8,0x5f,0x38
add $64, %rdi
add %r8, %rcx
add %r9, %rax
sub $8, %rsi
jg Ltop
Lx4: add %r10, %rcx
add %r11, %rax
Lx2: add %rcx, %rax
ret
L2: .byte 0xf3,0x48,0x0f,0xb8,0x4f,0x08
sub $8, %rsi
jle Lx2
.byte 0xf3,0x4c,0x0f,0xb8,0x47,0x10
.byte 0xf3,0x4c,0x0f,0xb8,0x4f,0x18
add $16, %rdi
jmp Le12
L5: .byte 0xf3,0x4c,0x0f,0xb8,0x47,0x08
.byte 0xf3,0x4c,0x0f,0xb8,0x4f,0x10
add $-24, %rdi
jmp Le56
L6: .byte 0xf3,0x48,0x0f,0xb8,0x4f,0x08
.byte 0xf3,0x4c,0x0f,0xb8,0x47,0x10
.byte 0xf3,0x4c,0x0f,0xb8,0x4f,0x18
add $-16, %rdi
jmp Le56
.text
.align 3, 0x90
Ltab: .set L0_tmp, L0-Ltab
.long L0_tmp
.set L1_tmp, L1-Ltab
.long L1_tmp
.set L2_tmp, L2-Ltab
.long L2_tmp
.set L3_tmp, L3-Ltab
.long L3_tmp
.set L4_tmp, L4-Ltab
.long L4_tmp
.set L5_tmp, L5-Ltab
.long L5_tmp
.set L6_tmp, L6-Ltab
.long L6_tmp
.set L7_tmp, L7-Ltab
.long L7_tmp
|