1 | .text
|
---|
2 | .globl bn_mul_add_words
|
---|
3 | .type bn_mul_add_words,@function
|
---|
4 | .align 16
|
---|
5 | bn_mul_add_words:
|
---|
6 | .L_bn_mul_add_words_begin:
|
---|
7 | .byte 243,15,30,251
|
---|
8 | pushl %ebp
|
---|
9 | pushl %ebx
|
---|
10 | pushl %esi
|
---|
11 | pushl %edi
|
---|
12 |
|
---|
13 | xorl %esi,%esi
|
---|
14 | movl 20(%esp),%edi
|
---|
15 | movl 28(%esp),%ecx
|
---|
16 | movl 24(%esp),%ebx
|
---|
17 | andl $4294967288,%ecx
|
---|
18 | movl 32(%esp),%ebp
|
---|
19 | pushl %ecx
|
---|
20 | jz .L000maw_finish
|
---|
21 | .align 16
|
---|
22 | .L001maw_loop:
|
---|
23 |
|
---|
24 | movl (%ebx),%eax
|
---|
25 | mull %ebp
|
---|
26 | addl %esi,%eax
|
---|
27 | adcl $0,%edx
|
---|
28 | addl (%edi),%eax
|
---|
29 | adcl $0,%edx
|
---|
30 | movl %eax,(%edi)
|
---|
31 | movl %edx,%esi
|
---|
32 |
|
---|
33 | movl 4(%ebx),%eax
|
---|
34 | mull %ebp
|
---|
35 | addl %esi,%eax
|
---|
36 | adcl $0,%edx
|
---|
37 | addl 4(%edi),%eax
|
---|
38 | adcl $0,%edx
|
---|
39 | movl %eax,4(%edi)
|
---|
40 | movl %edx,%esi
|
---|
41 |
|
---|
42 | movl 8(%ebx),%eax
|
---|
43 | mull %ebp
|
---|
44 | addl %esi,%eax
|
---|
45 | adcl $0,%edx
|
---|
46 | addl 8(%edi),%eax
|
---|
47 | adcl $0,%edx
|
---|
48 | movl %eax,8(%edi)
|
---|
49 | movl %edx,%esi
|
---|
50 |
|
---|
51 | movl 12(%ebx),%eax
|
---|
52 | mull %ebp
|
---|
53 | addl %esi,%eax
|
---|
54 | adcl $0,%edx
|
---|
55 | addl 12(%edi),%eax
|
---|
56 | adcl $0,%edx
|
---|
57 | movl %eax,12(%edi)
|
---|
58 | movl %edx,%esi
|
---|
59 |
|
---|
60 | movl 16(%ebx),%eax
|
---|
61 | mull %ebp
|
---|
62 | addl %esi,%eax
|
---|
63 | adcl $0,%edx
|
---|
64 | addl 16(%edi),%eax
|
---|
65 | adcl $0,%edx
|
---|
66 | movl %eax,16(%edi)
|
---|
67 | movl %edx,%esi
|
---|
68 |
|
---|
69 | movl 20(%ebx),%eax
|
---|
70 | mull %ebp
|
---|
71 | addl %esi,%eax
|
---|
72 | adcl $0,%edx
|
---|
73 | addl 20(%edi),%eax
|
---|
74 | adcl $0,%edx
|
---|
75 | movl %eax,20(%edi)
|
---|
76 | movl %edx,%esi
|
---|
77 |
|
---|
78 | movl 24(%ebx),%eax
|
---|
79 | mull %ebp
|
---|
80 | addl %esi,%eax
|
---|
81 | adcl $0,%edx
|
---|
82 | addl 24(%edi),%eax
|
---|
83 | adcl $0,%edx
|
---|
84 | movl %eax,24(%edi)
|
---|
85 | movl %edx,%esi
|
---|
86 |
|
---|
87 | movl 28(%ebx),%eax
|
---|
88 | mull %ebp
|
---|
89 | addl %esi,%eax
|
---|
90 | adcl $0,%edx
|
---|
91 | addl 28(%edi),%eax
|
---|
92 | adcl $0,%edx
|
---|
93 | movl %eax,28(%edi)
|
---|
94 | movl %edx,%esi
|
---|
95 |
|
---|
96 | subl $8,%ecx
|
---|
97 | leal 32(%ebx),%ebx
|
---|
98 | leal 32(%edi),%edi
|
---|
99 | jnz .L001maw_loop
|
---|
100 | .L000maw_finish:
|
---|
101 | movl 32(%esp),%ecx
|
---|
102 | andl $7,%ecx
|
---|
103 | jnz .L002maw_finish2
|
---|
104 | jmp .L003maw_end
|
---|
105 | .L002maw_finish2:
|
---|
106 |
|
---|
107 | movl (%ebx),%eax
|
---|
108 | mull %ebp
|
---|
109 | addl %esi,%eax
|
---|
110 | adcl $0,%edx
|
---|
111 | addl (%edi),%eax
|
---|
112 | adcl $0,%edx
|
---|
113 | decl %ecx
|
---|
114 | movl %eax,(%edi)
|
---|
115 | movl %edx,%esi
|
---|
116 | jz .L003maw_end
|
---|
117 |
|
---|
118 | movl 4(%ebx),%eax
|
---|
119 | mull %ebp
|
---|
120 | addl %esi,%eax
|
---|
121 | adcl $0,%edx
|
---|
122 | addl 4(%edi),%eax
|
---|
123 | adcl $0,%edx
|
---|
124 | decl %ecx
|
---|
125 | movl %eax,4(%edi)
|
---|
126 | movl %edx,%esi
|
---|
127 | jz .L003maw_end
|
---|
128 |
|
---|
129 | movl 8(%ebx),%eax
|
---|
130 | mull %ebp
|
---|
131 | addl %esi,%eax
|
---|
132 | adcl $0,%edx
|
---|
133 | addl 8(%edi),%eax
|
---|
134 | adcl $0,%edx
|
---|
135 | decl %ecx
|
---|
136 | movl %eax,8(%edi)
|
---|
137 | movl %edx,%esi
|
---|
138 | jz .L003maw_end
|
---|
139 |
|
---|
140 | movl 12(%ebx),%eax
|
---|
141 | mull %ebp
|
---|
142 | addl %esi,%eax
|
---|
143 | adcl $0,%edx
|
---|
144 | addl 12(%edi),%eax
|
---|
145 | adcl $0,%edx
|
---|
146 | decl %ecx
|
---|
147 | movl %eax,12(%edi)
|
---|
148 | movl %edx,%esi
|
---|
149 | jz .L003maw_end
|
---|
150 |
|
---|
151 | movl 16(%ebx),%eax
|
---|
152 | mull %ebp
|
---|
153 | addl %esi,%eax
|
---|
154 | adcl $0,%edx
|
---|
155 | addl 16(%edi),%eax
|
---|
156 | adcl $0,%edx
|
---|
157 | decl %ecx
|
---|
158 | movl %eax,16(%edi)
|
---|
159 | movl %edx,%esi
|
---|
160 | jz .L003maw_end
|
---|
161 |
|
---|
162 | movl 20(%ebx),%eax
|
---|
163 | mull %ebp
|
---|
164 | addl %esi,%eax
|
---|
165 | adcl $0,%edx
|
---|
166 | addl 20(%edi),%eax
|
---|
167 | adcl $0,%edx
|
---|
168 | decl %ecx
|
---|
169 | movl %eax,20(%edi)
|
---|
170 | movl %edx,%esi
|
---|
171 | jz .L003maw_end
|
---|
172 |
|
---|
173 | movl 24(%ebx),%eax
|
---|
174 | mull %ebp
|
---|
175 | addl %esi,%eax
|
---|
176 | adcl $0,%edx
|
---|
177 | addl 24(%edi),%eax
|
---|
178 | adcl $0,%edx
|
---|
179 | movl %eax,24(%edi)
|
---|
180 | movl %edx,%esi
|
---|
181 | .L003maw_end:
|
---|
182 | movl %esi,%eax
|
---|
183 | popl %ecx
|
---|
184 | popl %edi
|
---|
185 | popl %esi
|
---|
186 | popl %ebx
|
---|
187 | popl %ebp
|
---|
188 | ret
|
---|
189 | .size bn_mul_add_words,.-.L_bn_mul_add_words_begin
|
---|
190 | .globl bn_mul_words
|
---|
191 | .type bn_mul_words,@function
|
---|
192 | .align 16
|
---|
193 | bn_mul_words:
|
---|
194 | .L_bn_mul_words_begin:
|
---|
195 | .byte 243,15,30,251
|
---|
196 | pushl %ebp
|
---|
197 | pushl %ebx
|
---|
198 | pushl %esi
|
---|
199 | pushl %edi
|
---|
200 |
|
---|
201 | xorl %esi,%esi
|
---|
202 | movl 20(%esp),%edi
|
---|
203 | movl 24(%esp),%ebx
|
---|
204 | movl 28(%esp),%ebp
|
---|
205 | movl 32(%esp),%ecx
|
---|
206 | andl $4294967288,%ebp
|
---|
207 | jz .L004mw_finish
|
---|
208 | .L005mw_loop:
|
---|
209 |
|
---|
210 | movl (%ebx),%eax
|
---|
211 | mull %ecx
|
---|
212 | addl %esi,%eax
|
---|
213 | adcl $0,%edx
|
---|
214 | movl %eax,(%edi)
|
---|
215 | movl %edx,%esi
|
---|
216 |
|
---|
217 | movl 4(%ebx),%eax
|
---|
218 | mull %ecx
|
---|
219 | addl %esi,%eax
|
---|
220 | adcl $0,%edx
|
---|
221 | movl %eax,4(%edi)
|
---|
222 | movl %edx,%esi
|
---|
223 |
|
---|
224 | movl 8(%ebx),%eax
|
---|
225 | mull %ecx
|
---|
226 | addl %esi,%eax
|
---|
227 | adcl $0,%edx
|
---|
228 | movl %eax,8(%edi)
|
---|
229 | movl %edx,%esi
|
---|
230 |
|
---|
231 | movl 12(%ebx),%eax
|
---|
232 | mull %ecx
|
---|
233 | addl %esi,%eax
|
---|
234 | adcl $0,%edx
|
---|
235 | movl %eax,12(%edi)
|
---|
236 | movl %edx,%esi
|
---|
237 |
|
---|
238 | movl 16(%ebx),%eax
|
---|
239 | mull %ecx
|
---|
240 | addl %esi,%eax
|
---|
241 | adcl $0,%edx
|
---|
242 | movl %eax,16(%edi)
|
---|
243 | movl %edx,%esi
|
---|
244 |
|
---|
245 | movl 20(%ebx),%eax
|
---|
246 | mull %ecx
|
---|
247 | addl %esi,%eax
|
---|
248 | adcl $0,%edx
|
---|
249 | movl %eax,20(%edi)
|
---|
250 | movl %edx,%esi
|
---|
251 |
|
---|
252 | movl 24(%ebx),%eax
|
---|
253 | mull %ecx
|
---|
254 | addl %esi,%eax
|
---|
255 | adcl $0,%edx
|
---|
256 | movl %eax,24(%edi)
|
---|
257 | movl %edx,%esi
|
---|
258 |
|
---|
259 | movl 28(%ebx),%eax
|
---|
260 | mull %ecx
|
---|
261 | addl %esi,%eax
|
---|
262 | adcl $0,%edx
|
---|
263 | movl %eax,28(%edi)
|
---|
264 | movl %edx,%esi
|
---|
265 |
|
---|
266 | addl $32,%ebx
|
---|
267 | addl $32,%edi
|
---|
268 | subl $8,%ebp
|
---|
269 | jz .L004mw_finish
|
---|
270 | jmp .L005mw_loop
|
---|
271 | .L004mw_finish:
|
---|
272 | movl 28(%esp),%ebp
|
---|
273 | andl $7,%ebp
|
---|
274 | jnz .L006mw_finish2
|
---|
275 | jmp .L007mw_end
|
---|
276 | .L006mw_finish2:
|
---|
277 |
|
---|
278 | movl (%ebx),%eax
|
---|
279 | mull %ecx
|
---|
280 | addl %esi,%eax
|
---|
281 | adcl $0,%edx
|
---|
282 | movl %eax,(%edi)
|
---|
283 | movl %edx,%esi
|
---|
284 | decl %ebp
|
---|
285 | jz .L007mw_end
|
---|
286 |
|
---|
287 | movl 4(%ebx),%eax
|
---|
288 | mull %ecx
|
---|
289 | addl %esi,%eax
|
---|
290 | adcl $0,%edx
|
---|
291 | movl %eax,4(%edi)
|
---|
292 | movl %edx,%esi
|
---|
293 | decl %ebp
|
---|
294 | jz .L007mw_end
|
---|
295 |
|
---|
296 | movl 8(%ebx),%eax
|
---|
297 | mull %ecx
|
---|
298 | addl %esi,%eax
|
---|
299 | adcl $0,%edx
|
---|
300 | movl %eax,8(%edi)
|
---|
301 | movl %edx,%esi
|
---|
302 | decl %ebp
|
---|
303 | jz .L007mw_end
|
---|
304 |
|
---|
305 | movl 12(%ebx),%eax
|
---|
306 | mull %ecx
|
---|
307 | addl %esi,%eax
|
---|
308 | adcl $0,%edx
|
---|
309 | movl %eax,12(%edi)
|
---|
310 | movl %edx,%esi
|
---|
311 | decl %ebp
|
---|
312 | jz .L007mw_end
|
---|
313 |
|
---|
314 | movl 16(%ebx),%eax
|
---|
315 | mull %ecx
|
---|
316 | addl %esi,%eax
|
---|
317 | adcl $0,%edx
|
---|
318 | movl %eax,16(%edi)
|
---|
319 | movl %edx,%esi
|
---|
320 | decl %ebp
|
---|
321 | jz .L007mw_end
|
---|
322 |
|
---|
323 | movl 20(%ebx),%eax
|
---|
324 | mull %ecx
|
---|
325 | addl %esi,%eax
|
---|
326 | adcl $0,%edx
|
---|
327 | movl %eax,20(%edi)
|
---|
328 | movl %edx,%esi
|
---|
329 | decl %ebp
|
---|
330 | jz .L007mw_end
|
---|
331 |
|
---|
332 | movl 24(%ebx),%eax
|
---|
333 | mull %ecx
|
---|
334 | addl %esi,%eax
|
---|
335 | adcl $0,%edx
|
---|
336 | movl %eax,24(%edi)
|
---|
337 | movl %edx,%esi
|
---|
338 | .L007mw_end:
|
---|
339 | movl %esi,%eax
|
---|
340 | popl %edi
|
---|
341 | popl %esi
|
---|
342 | popl %ebx
|
---|
343 | popl %ebp
|
---|
344 | ret
|
---|
345 | .size bn_mul_words,.-.L_bn_mul_words_begin
|
---|
346 | .globl bn_sqr_words
|
---|
347 | .type bn_sqr_words,@function
|
---|
348 | .align 16
|
---|
349 | bn_sqr_words:
|
---|
350 | .L_bn_sqr_words_begin:
|
---|
351 | .byte 243,15,30,251
|
---|
352 | pushl %ebp
|
---|
353 | pushl %ebx
|
---|
354 | pushl %esi
|
---|
355 | pushl %edi
|
---|
356 |
|
---|
357 | movl 20(%esp),%esi
|
---|
358 | movl 24(%esp),%edi
|
---|
359 | movl 28(%esp),%ebx
|
---|
360 | andl $4294967288,%ebx
|
---|
361 | jz .L008sw_finish
|
---|
362 | .L009sw_loop:
|
---|
363 |
|
---|
364 | movl (%edi),%eax
|
---|
365 | mull %eax
|
---|
366 | movl %eax,(%esi)
|
---|
367 | movl %edx,4(%esi)
|
---|
368 |
|
---|
369 | movl 4(%edi),%eax
|
---|
370 | mull %eax
|
---|
371 | movl %eax,8(%esi)
|
---|
372 | movl %edx,12(%esi)
|
---|
373 |
|
---|
374 | movl 8(%edi),%eax
|
---|
375 | mull %eax
|
---|
376 | movl %eax,16(%esi)
|
---|
377 | movl %edx,20(%esi)
|
---|
378 |
|
---|
379 | movl 12(%edi),%eax
|
---|
380 | mull %eax
|
---|
381 | movl %eax,24(%esi)
|
---|
382 | movl %edx,28(%esi)
|
---|
383 |
|
---|
384 | movl 16(%edi),%eax
|
---|
385 | mull %eax
|
---|
386 | movl %eax,32(%esi)
|
---|
387 | movl %edx,36(%esi)
|
---|
388 |
|
---|
389 | movl 20(%edi),%eax
|
---|
390 | mull %eax
|
---|
391 | movl %eax,40(%esi)
|
---|
392 | movl %edx,44(%esi)
|
---|
393 |
|
---|
394 | movl 24(%edi),%eax
|
---|
395 | mull %eax
|
---|
396 | movl %eax,48(%esi)
|
---|
397 | movl %edx,52(%esi)
|
---|
398 |
|
---|
399 | movl 28(%edi),%eax
|
---|
400 | mull %eax
|
---|
401 | movl %eax,56(%esi)
|
---|
402 | movl %edx,60(%esi)
|
---|
403 |
|
---|
404 | addl $32,%edi
|
---|
405 | addl $64,%esi
|
---|
406 | subl $8,%ebx
|
---|
407 | jnz .L009sw_loop
|
---|
408 | .L008sw_finish:
|
---|
409 | movl 28(%esp),%ebx
|
---|
410 | andl $7,%ebx
|
---|
411 | jz .L010sw_end
|
---|
412 |
|
---|
413 | movl (%edi),%eax
|
---|
414 | mull %eax
|
---|
415 | movl %eax,(%esi)
|
---|
416 | decl %ebx
|
---|
417 | movl %edx,4(%esi)
|
---|
418 | jz .L010sw_end
|
---|
419 |
|
---|
420 | movl 4(%edi),%eax
|
---|
421 | mull %eax
|
---|
422 | movl %eax,8(%esi)
|
---|
423 | decl %ebx
|
---|
424 | movl %edx,12(%esi)
|
---|
425 | jz .L010sw_end
|
---|
426 |
|
---|
427 | movl 8(%edi),%eax
|
---|
428 | mull %eax
|
---|
429 | movl %eax,16(%esi)
|
---|
430 | decl %ebx
|
---|
431 | movl %edx,20(%esi)
|
---|
432 | jz .L010sw_end
|
---|
433 |
|
---|
434 | movl 12(%edi),%eax
|
---|
435 | mull %eax
|
---|
436 | movl %eax,24(%esi)
|
---|
437 | decl %ebx
|
---|
438 | movl %edx,28(%esi)
|
---|
439 | jz .L010sw_end
|
---|
440 |
|
---|
441 | movl 16(%edi),%eax
|
---|
442 | mull %eax
|
---|
443 | movl %eax,32(%esi)
|
---|
444 | decl %ebx
|
---|
445 | movl %edx,36(%esi)
|
---|
446 | jz .L010sw_end
|
---|
447 |
|
---|
448 | movl 20(%edi),%eax
|
---|
449 | mull %eax
|
---|
450 | movl %eax,40(%esi)
|
---|
451 | decl %ebx
|
---|
452 | movl %edx,44(%esi)
|
---|
453 | jz .L010sw_end
|
---|
454 |
|
---|
455 | movl 24(%edi),%eax
|
---|
456 | mull %eax
|
---|
457 | movl %eax,48(%esi)
|
---|
458 | movl %edx,52(%esi)
|
---|
459 | .L010sw_end:
|
---|
460 | popl %edi
|
---|
461 | popl %esi
|
---|
462 | popl %ebx
|
---|
463 | popl %ebp
|
---|
464 | ret
|
---|
465 | .size bn_sqr_words,.-.L_bn_sqr_words_begin
|
---|
466 | .globl bn_div_words
|
---|
467 | .type bn_div_words,@function
|
---|
468 | .align 16
|
---|
469 | bn_div_words:
|
---|
470 | .L_bn_div_words_begin:
|
---|
471 | .byte 243,15,30,251
|
---|
472 | movl 4(%esp),%edx
|
---|
473 | movl 8(%esp),%eax
|
---|
474 | movl 12(%esp),%ecx
|
---|
475 | divl %ecx
|
---|
476 | ret
|
---|
477 | .size bn_div_words,.-.L_bn_div_words_begin
|
---|
478 | .globl bn_add_words
|
---|
479 | .type bn_add_words,@function
|
---|
480 | .align 16
|
---|
481 | bn_add_words:
|
---|
482 | .L_bn_add_words_begin:
|
---|
483 | .byte 243,15,30,251
|
---|
484 | pushl %ebp
|
---|
485 | pushl %ebx
|
---|
486 | pushl %esi
|
---|
487 | pushl %edi
|
---|
488 |
|
---|
489 | movl 20(%esp),%ebx
|
---|
490 | movl 24(%esp),%esi
|
---|
491 | movl 28(%esp),%edi
|
---|
492 | movl 32(%esp),%ebp
|
---|
493 | xorl %eax,%eax
|
---|
494 | andl $4294967288,%ebp
|
---|
495 | jz .L011aw_finish
|
---|
496 | .L012aw_loop:
|
---|
497 |
|
---|
498 | movl (%esi),%ecx
|
---|
499 | movl (%edi),%edx
|
---|
500 | addl %eax,%ecx
|
---|
501 | movl $0,%eax
|
---|
502 | adcl %eax,%eax
|
---|
503 | addl %edx,%ecx
|
---|
504 | adcl $0,%eax
|
---|
505 | movl %ecx,(%ebx)
|
---|
506 |
|
---|
507 | movl 4(%esi),%ecx
|
---|
508 | movl 4(%edi),%edx
|
---|
509 | addl %eax,%ecx
|
---|
510 | movl $0,%eax
|
---|
511 | adcl %eax,%eax
|
---|
512 | addl %edx,%ecx
|
---|
513 | adcl $0,%eax
|
---|
514 | movl %ecx,4(%ebx)
|
---|
515 |
|
---|
516 | movl 8(%esi),%ecx
|
---|
517 | movl 8(%edi),%edx
|
---|
518 | addl %eax,%ecx
|
---|
519 | movl $0,%eax
|
---|
520 | adcl %eax,%eax
|
---|
521 | addl %edx,%ecx
|
---|
522 | adcl $0,%eax
|
---|
523 | movl %ecx,8(%ebx)
|
---|
524 |
|
---|
525 | movl 12(%esi),%ecx
|
---|
526 | movl 12(%edi),%edx
|
---|
527 | addl %eax,%ecx
|
---|
528 | movl $0,%eax
|
---|
529 | adcl %eax,%eax
|
---|
530 | addl %edx,%ecx
|
---|
531 | adcl $0,%eax
|
---|
532 | movl %ecx,12(%ebx)
|
---|
533 |
|
---|
534 | movl 16(%esi),%ecx
|
---|
535 | movl 16(%edi),%edx
|
---|
536 | addl %eax,%ecx
|
---|
537 | movl $0,%eax
|
---|
538 | adcl %eax,%eax
|
---|
539 | addl %edx,%ecx
|
---|
540 | adcl $0,%eax
|
---|
541 | movl %ecx,16(%ebx)
|
---|
542 |
|
---|
543 | movl 20(%esi),%ecx
|
---|
544 | movl 20(%edi),%edx
|
---|
545 | addl %eax,%ecx
|
---|
546 | movl $0,%eax
|
---|
547 | adcl %eax,%eax
|
---|
548 | addl %edx,%ecx
|
---|
549 | adcl $0,%eax
|
---|
550 | movl %ecx,20(%ebx)
|
---|
551 |
|
---|
552 | movl 24(%esi),%ecx
|
---|
553 | movl 24(%edi),%edx
|
---|
554 | addl %eax,%ecx
|
---|
555 | movl $0,%eax
|
---|
556 | adcl %eax,%eax
|
---|
557 | addl %edx,%ecx
|
---|
558 | adcl $0,%eax
|
---|
559 | movl %ecx,24(%ebx)
|
---|
560 |
|
---|
561 | movl 28(%esi),%ecx
|
---|
562 | movl 28(%edi),%edx
|
---|
563 | addl %eax,%ecx
|
---|
564 | movl $0,%eax
|
---|
565 | adcl %eax,%eax
|
---|
566 | addl %edx,%ecx
|
---|
567 | adcl $0,%eax
|
---|
568 | movl %ecx,28(%ebx)
|
---|
569 |
|
---|
570 | addl $32,%esi
|
---|
571 | addl $32,%edi
|
---|
572 | addl $32,%ebx
|
---|
573 | subl $8,%ebp
|
---|
574 | jnz .L012aw_loop
|
---|
575 | .L011aw_finish:
|
---|
576 | movl 32(%esp),%ebp
|
---|
577 | andl $7,%ebp
|
---|
578 | jz .L013aw_end
|
---|
579 |
|
---|
580 | movl (%esi),%ecx
|
---|
581 | movl (%edi),%edx
|
---|
582 | addl %eax,%ecx
|
---|
583 | movl $0,%eax
|
---|
584 | adcl %eax,%eax
|
---|
585 | addl %edx,%ecx
|
---|
586 | adcl $0,%eax
|
---|
587 | decl %ebp
|
---|
588 | movl %ecx,(%ebx)
|
---|
589 | jz .L013aw_end
|
---|
590 |
|
---|
591 | movl 4(%esi),%ecx
|
---|
592 | movl 4(%edi),%edx
|
---|
593 | addl %eax,%ecx
|
---|
594 | movl $0,%eax
|
---|
595 | adcl %eax,%eax
|
---|
596 | addl %edx,%ecx
|
---|
597 | adcl $0,%eax
|
---|
598 | decl %ebp
|
---|
599 | movl %ecx,4(%ebx)
|
---|
600 | jz .L013aw_end
|
---|
601 |
|
---|
602 | movl 8(%esi),%ecx
|
---|
603 | movl 8(%edi),%edx
|
---|
604 | addl %eax,%ecx
|
---|
605 | movl $0,%eax
|
---|
606 | adcl %eax,%eax
|
---|
607 | addl %edx,%ecx
|
---|
608 | adcl $0,%eax
|
---|
609 | decl %ebp
|
---|
610 | movl %ecx,8(%ebx)
|
---|
611 | jz .L013aw_end
|
---|
612 |
|
---|
613 | movl 12(%esi),%ecx
|
---|
614 | movl 12(%edi),%edx
|
---|
615 | addl %eax,%ecx
|
---|
616 | movl $0,%eax
|
---|
617 | adcl %eax,%eax
|
---|
618 | addl %edx,%ecx
|
---|
619 | adcl $0,%eax
|
---|
620 | decl %ebp
|
---|
621 | movl %ecx,12(%ebx)
|
---|
622 | jz .L013aw_end
|
---|
623 |
|
---|
624 | movl 16(%esi),%ecx
|
---|
625 | movl 16(%edi),%edx
|
---|
626 | addl %eax,%ecx
|
---|
627 | movl $0,%eax
|
---|
628 | adcl %eax,%eax
|
---|
629 | addl %edx,%ecx
|
---|
630 | adcl $0,%eax
|
---|
631 | decl %ebp
|
---|
632 | movl %ecx,16(%ebx)
|
---|
633 | jz .L013aw_end
|
---|
634 |
|
---|
635 | movl 20(%esi),%ecx
|
---|
636 | movl 20(%edi),%edx
|
---|
637 | addl %eax,%ecx
|
---|
638 | movl $0,%eax
|
---|
639 | adcl %eax,%eax
|
---|
640 | addl %edx,%ecx
|
---|
641 | adcl $0,%eax
|
---|
642 | decl %ebp
|
---|
643 | movl %ecx,20(%ebx)
|
---|
644 | jz .L013aw_end
|
---|
645 |
|
---|
646 | movl 24(%esi),%ecx
|
---|
647 | movl 24(%edi),%edx
|
---|
648 | addl %eax,%ecx
|
---|
649 | movl $0,%eax
|
---|
650 | adcl %eax,%eax
|
---|
651 | addl %edx,%ecx
|
---|
652 | adcl $0,%eax
|
---|
653 | movl %ecx,24(%ebx)
|
---|
654 | .L013aw_end:
|
---|
655 | popl %edi
|
---|
656 | popl %esi
|
---|
657 | popl %ebx
|
---|
658 | popl %ebp
|
---|
659 | ret
|
---|
660 | .size bn_add_words,.-.L_bn_add_words_begin
|
---|
661 | .globl bn_sub_words
|
---|
662 | .type bn_sub_words,@function
|
---|
663 | .align 16
|
---|
664 | bn_sub_words:
|
---|
665 | .L_bn_sub_words_begin:
|
---|
666 | .byte 243,15,30,251
|
---|
667 | pushl %ebp
|
---|
668 | pushl %ebx
|
---|
669 | pushl %esi
|
---|
670 | pushl %edi
|
---|
671 |
|
---|
672 | movl 20(%esp),%ebx
|
---|
673 | movl 24(%esp),%esi
|
---|
674 | movl 28(%esp),%edi
|
---|
675 | movl 32(%esp),%ebp
|
---|
676 | xorl %eax,%eax
|
---|
677 | andl $4294967288,%ebp
|
---|
678 | jz .L014aw_finish
|
---|
679 | .L015aw_loop:
|
---|
680 |
|
---|
681 | movl (%esi),%ecx
|
---|
682 | movl (%edi),%edx
|
---|
683 | subl %eax,%ecx
|
---|
684 | movl $0,%eax
|
---|
685 | adcl %eax,%eax
|
---|
686 | subl %edx,%ecx
|
---|
687 | adcl $0,%eax
|
---|
688 | movl %ecx,(%ebx)
|
---|
689 |
|
---|
690 | movl 4(%esi),%ecx
|
---|
691 | movl 4(%edi),%edx
|
---|
692 | subl %eax,%ecx
|
---|
693 | movl $0,%eax
|
---|
694 | adcl %eax,%eax
|
---|
695 | subl %edx,%ecx
|
---|
696 | adcl $0,%eax
|
---|
697 | movl %ecx,4(%ebx)
|
---|
698 |
|
---|
699 | movl 8(%esi),%ecx
|
---|
700 | movl 8(%edi),%edx
|
---|
701 | subl %eax,%ecx
|
---|
702 | movl $0,%eax
|
---|
703 | adcl %eax,%eax
|
---|
704 | subl %edx,%ecx
|
---|
705 | adcl $0,%eax
|
---|
706 | movl %ecx,8(%ebx)
|
---|
707 |
|
---|
708 | movl 12(%esi),%ecx
|
---|
709 | movl 12(%edi),%edx
|
---|
710 | subl %eax,%ecx
|
---|
711 | movl $0,%eax
|
---|
712 | adcl %eax,%eax
|
---|
713 | subl %edx,%ecx
|
---|
714 | adcl $0,%eax
|
---|
715 | movl %ecx,12(%ebx)
|
---|
716 |
|
---|
717 | movl 16(%esi),%ecx
|
---|
718 | movl 16(%edi),%edx
|
---|
719 | subl %eax,%ecx
|
---|
720 | movl $0,%eax
|
---|
721 | adcl %eax,%eax
|
---|
722 | subl %edx,%ecx
|
---|
723 | adcl $0,%eax
|
---|
724 | movl %ecx,16(%ebx)
|
---|
725 |
|
---|
726 | movl 20(%esi),%ecx
|
---|
727 | movl 20(%edi),%edx
|
---|
728 | subl %eax,%ecx
|
---|
729 | movl $0,%eax
|
---|
730 | adcl %eax,%eax
|
---|
731 | subl %edx,%ecx
|
---|
732 | adcl $0,%eax
|
---|
733 | movl %ecx,20(%ebx)
|
---|
734 |
|
---|
735 | movl 24(%esi),%ecx
|
---|
736 | movl 24(%edi),%edx
|
---|
737 | subl %eax,%ecx
|
---|
738 | movl $0,%eax
|
---|
739 | adcl %eax,%eax
|
---|
740 | subl %edx,%ecx
|
---|
741 | adcl $0,%eax
|
---|
742 | movl %ecx,24(%ebx)
|
---|
743 |
|
---|
744 | movl 28(%esi),%ecx
|
---|
745 | movl 28(%edi),%edx
|
---|
746 | subl %eax,%ecx
|
---|
747 | movl $0,%eax
|
---|
748 | adcl %eax,%eax
|
---|
749 | subl %edx,%ecx
|
---|
750 | adcl $0,%eax
|
---|
751 | movl %ecx,28(%ebx)
|
---|
752 |
|
---|
753 | addl $32,%esi
|
---|
754 | addl $32,%edi
|
---|
755 | addl $32,%ebx
|
---|
756 | subl $8,%ebp
|
---|
757 | jnz .L015aw_loop
|
---|
758 | .L014aw_finish:
|
---|
759 | movl 32(%esp),%ebp
|
---|
760 | andl $7,%ebp
|
---|
761 | jz .L016aw_end
|
---|
762 |
|
---|
763 | movl (%esi),%ecx
|
---|
764 | movl (%edi),%edx
|
---|
765 | subl %eax,%ecx
|
---|
766 | movl $0,%eax
|
---|
767 | adcl %eax,%eax
|
---|
768 | subl %edx,%ecx
|
---|
769 | adcl $0,%eax
|
---|
770 | decl %ebp
|
---|
771 | movl %ecx,(%ebx)
|
---|
772 | jz .L016aw_end
|
---|
773 |
|
---|
774 | movl 4(%esi),%ecx
|
---|
775 | movl 4(%edi),%edx
|
---|
776 | subl %eax,%ecx
|
---|
777 | movl $0,%eax
|
---|
778 | adcl %eax,%eax
|
---|
779 | subl %edx,%ecx
|
---|
780 | adcl $0,%eax
|
---|
781 | decl %ebp
|
---|
782 | movl %ecx,4(%ebx)
|
---|
783 | jz .L016aw_end
|
---|
784 |
|
---|
785 | movl 8(%esi),%ecx
|
---|
786 | movl 8(%edi),%edx
|
---|
787 | subl %eax,%ecx
|
---|
788 | movl $0,%eax
|
---|
789 | adcl %eax,%eax
|
---|
790 | subl %edx,%ecx
|
---|
791 | adcl $0,%eax
|
---|
792 | decl %ebp
|
---|
793 | movl %ecx,8(%ebx)
|
---|
794 | jz .L016aw_end
|
---|
795 |
|
---|
796 | movl 12(%esi),%ecx
|
---|
797 | movl 12(%edi),%edx
|
---|
798 | subl %eax,%ecx
|
---|
799 | movl $0,%eax
|
---|
800 | adcl %eax,%eax
|
---|
801 | subl %edx,%ecx
|
---|
802 | adcl $0,%eax
|
---|
803 | decl %ebp
|
---|
804 | movl %ecx,12(%ebx)
|
---|
805 | jz .L016aw_end
|
---|
806 |
|
---|
807 | movl 16(%esi),%ecx
|
---|
808 | movl 16(%edi),%edx
|
---|
809 | subl %eax,%ecx
|
---|
810 | movl $0,%eax
|
---|
811 | adcl %eax,%eax
|
---|
812 | subl %edx,%ecx
|
---|
813 | adcl $0,%eax
|
---|
814 | decl %ebp
|
---|
815 | movl %ecx,16(%ebx)
|
---|
816 | jz .L016aw_end
|
---|
817 |
|
---|
818 | movl 20(%esi),%ecx
|
---|
819 | movl 20(%edi),%edx
|
---|
820 | subl %eax,%ecx
|
---|
821 | movl $0,%eax
|
---|
822 | adcl %eax,%eax
|
---|
823 | subl %edx,%ecx
|
---|
824 | adcl $0,%eax
|
---|
825 | decl %ebp
|
---|
826 | movl %ecx,20(%ebx)
|
---|
827 | jz .L016aw_end
|
---|
828 |
|
---|
829 | movl 24(%esi),%ecx
|
---|
830 | movl 24(%edi),%edx
|
---|
831 | subl %eax,%ecx
|
---|
832 | movl $0,%eax
|
---|
833 | adcl %eax,%eax
|
---|
834 | subl %edx,%ecx
|
---|
835 | adcl $0,%eax
|
---|
836 | movl %ecx,24(%ebx)
|
---|
837 | .L016aw_end:
|
---|
838 | popl %edi
|
---|
839 | popl %esi
|
---|
840 | popl %ebx
|
---|
841 | popl %ebp
|
---|
842 | ret
|
---|
843 | .size bn_sub_words,.-.L_bn_sub_words_begin
|
---|
844 | .globl bn_sub_part_words
|
---|
845 | .type bn_sub_part_words,@function
|
---|
846 | .align 16
|
---|
847 | bn_sub_part_words:
|
---|
848 | .L_bn_sub_part_words_begin:
|
---|
849 | .byte 243,15,30,251
|
---|
850 | pushl %ebp
|
---|
851 | pushl %ebx
|
---|
852 | pushl %esi
|
---|
853 | pushl %edi
|
---|
854 |
|
---|
855 | movl 20(%esp),%ebx
|
---|
856 | movl 24(%esp),%esi
|
---|
857 | movl 28(%esp),%edi
|
---|
858 | movl 32(%esp),%ebp
|
---|
859 | xorl %eax,%eax
|
---|
860 | andl $4294967288,%ebp
|
---|
861 | jz .L017aw_finish
|
---|
862 | .L018aw_loop:
|
---|
863 |
|
---|
864 | movl (%esi),%ecx
|
---|
865 | movl (%edi),%edx
|
---|
866 | subl %eax,%ecx
|
---|
867 | movl $0,%eax
|
---|
868 | adcl %eax,%eax
|
---|
869 | subl %edx,%ecx
|
---|
870 | adcl $0,%eax
|
---|
871 | movl %ecx,(%ebx)
|
---|
872 |
|
---|
873 | movl 4(%esi),%ecx
|
---|
874 | movl 4(%edi),%edx
|
---|
875 | subl %eax,%ecx
|
---|
876 | movl $0,%eax
|
---|
877 | adcl %eax,%eax
|
---|
878 | subl %edx,%ecx
|
---|
879 | adcl $0,%eax
|
---|
880 | movl %ecx,4(%ebx)
|
---|
881 |
|
---|
882 | movl 8(%esi),%ecx
|
---|
883 | movl 8(%edi),%edx
|
---|
884 | subl %eax,%ecx
|
---|
885 | movl $0,%eax
|
---|
886 | adcl %eax,%eax
|
---|
887 | subl %edx,%ecx
|
---|
888 | adcl $0,%eax
|
---|
889 | movl %ecx,8(%ebx)
|
---|
890 |
|
---|
891 | movl 12(%esi),%ecx
|
---|
892 | movl 12(%edi),%edx
|
---|
893 | subl %eax,%ecx
|
---|
894 | movl $0,%eax
|
---|
895 | adcl %eax,%eax
|
---|
896 | subl %edx,%ecx
|
---|
897 | adcl $0,%eax
|
---|
898 | movl %ecx,12(%ebx)
|
---|
899 |
|
---|
900 | movl 16(%esi),%ecx
|
---|
901 | movl 16(%edi),%edx
|
---|
902 | subl %eax,%ecx
|
---|
903 | movl $0,%eax
|
---|
904 | adcl %eax,%eax
|
---|
905 | subl %edx,%ecx
|
---|
906 | adcl $0,%eax
|
---|
907 | movl %ecx,16(%ebx)
|
---|
908 |
|
---|
909 | movl 20(%esi),%ecx
|
---|
910 | movl 20(%edi),%edx
|
---|
911 | subl %eax,%ecx
|
---|
912 | movl $0,%eax
|
---|
913 | adcl %eax,%eax
|
---|
914 | subl %edx,%ecx
|
---|
915 | adcl $0,%eax
|
---|
916 | movl %ecx,20(%ebx)
|
---|
917 |
|
---|
918 | movl 24(%esi),%ecx
|
---|
919 | movl 24(%edi),%edx
|
---|
920 | subl %eax,%ecx
|
---|
921 | movl $0,%eax
|
---|
922 | adcl %eax,%eax
|
---|
923 | subl %edx,%ecx
|
---|
924 | adcl $0,%eax
|
---|
925 | movl %ecx,24(%ebx)
|
---|
926 |
|
---|
927 | movl 28(%esi),%ecx
|
---|
928 | movl 28(%edi),%edx
|
---|
929 | subl %eax,%ecx
|
---|
930 | movl $0,%eax
|
---|
931 | adcl %eax,%eax
|
---|
932 | subl %edx,%ecx
|
---|
933 | adcl $0,%eax
|
---|
934 | movl %ecx,28(%ebx)
|
---|
935 |
|
---|
936 | addl $32,%esi
|
---|
937 | addl $32,%edi
|
---|
938 | addl $32,%ebx
|
---|
939 | subl $8,%ebp
|
---|
940 | jnz .L018aw_loop
|
---|
941 | .L017aw_finish:
|
---|
942 | movl 32(%esp),%ebp
|
---|
943 | andl $7,%ebp
|
---|
944 | jz .L019aw_end
|
---|
945 |
|
---|
946 | movl (%esi),%ecx
|
---|
947 | movl (%edi),%edx
|
---|
948 | subl %eax,%ecx
|
---|
949 | movl $0,%eax
|
---|
950 | adcl %eax,%eax
|
---|
951 | subl %edx,%ecx
|
---|
952 | adcl $0,%eax
|
---|
953 | movl %ecx,(%ebx)
|
---|
954 | addl $4,%esi
|
---|
955 | addl $4,%edi
|
---|
956 | addl $4,%ebx
|
---|
957 | decl %ebp
|
---|
958 | jz .L019aw_end
|
---|
959 |
|
---|
960 | movl (%esi),%ecx
|
---|
961 | movl (%edi),%edx
|
---|
962 | subl %eax,%ecx
|
---|
963 | movl $0,%eax
|
---|
964 | adcl %eax,%eax
|
---|
965 | subl %edx,%ecx
|
---|
966 | adcl $0,%eax
|
---|
967 | movl %ecx,(%ebx)
|
---|
968 | addl $4,%esi
|
---|
969 | addl $4,%edi
|
---|
970 | addl $4,%ebx
|
---|
971 | decl %ebp
|
---|
972 | jz .L019aw_end
|
---|
973 |
|
---|
974 | movl (%esi),%ecx
|
---|
975 | movl (%edi),%edx
|
---|
976 | subl %eax,%ecx
|
---|
977 | movl $0,%eax
|
---|
978 | adcl %eax,%eax
|
---|
979 | subl %edx,%ecx
|
---|
980 | adcl $0,%eax
|
---|
981 | movl %ecx,(%ebx)
|
---|
982 | addl $4,%esi
|
---|
983 | addl $4,%edi
|
---|
984 | addl $4,%ebx
|
---|
985 | decl %ebp
|
---|
986 | jz .L019aw_end
|
---|
987 |
|
---|
988 | movl (%esi),%ecx
|
---|
989 | movl (%edi),%edx
|
---|
990 | subl %eax,%ecx
|
---|
991 | movl $0,%eax
|
---|
992 | adcl %eax,%eax
|
---|
993 | subl %edx,%ecx
|
---|
994 | adcl $0,%eax
|
---|
995 | movl %ecx,(%ebx)
|
---|
996 | addl $4,%esi
|
---|
997 | addl $4,%edi
|
---|
998 | addl $4,%ebx
|
---|
999 | decl %ebp
|
---|
1000 | jz .L019aw_end
|
---|
1001 |
|
---|
1002 | movl (%esi),%ecx
|
---|
1003 | movl (%edi),%edx
|
---|
1004 | subl %eax,%ecx
|
---|
1005 | movl $0,%eax
|
---|
1006 | adcl %eax,%eax
|
---|
1007 | subl %edx,%ecx
|
---|
1008 | adcl $0,%eax
|
---|
1009 | movl %ecx,(%ebx)
|
---|
1010 | addl $4,%esi
|
---|
1011 | addl $4,%edi
|
---|
1012 | addl $4,%ebx
|
---|
1013 | decl %ebp
|
---|
1014 | jz .L019aw_end
|
---|
1015 |
|
---|
1016 | movl (%esi),%ecx
|
---|
1017 | movl (%edi),%edx
|
---|
1018 | subl %eax,%ecx
|
---|
1019 | movl $0,%eax
|
---|
1020 | adcl %eax,%eax
|
---|
1021 | subl %edx,%ecx
|
---|
1022 | adcl $0,%eax
|
---|
1023 | movl %ecx,(%ebx)
|
---|
1024 | addl $4,%esi
|
---|
1025 | addl $4,%edi
|
---|
1026 | addl $4,%ebx
|
---|
1027 | decl %ebp
|
---|
1028 | jz .L019aw_end
|
---|
1029 |
|
---|
1030 | movl (%esi),%ecx
|
---|
1031 | movl (%edi),%edx
|
---|
1032 | subl %eax,%ecx
|
---|
1033 | movl $0,%eax
|
---|
1034 | adcl %eax,%eax
|
---|
1035 | subl %edx,%ecx
|
---|
1036 | adcl $0,%eax
|
---|
1037 | movl %ecx,(%ebx)
|
---|
1038 | addl $4,%esi
|
---|
1039 | addl $4,%edi
|
---|
1040 | addl $4,%ebx
|
---|
1041 | .L019aw_end:
|
---|
1042 | cmpl $0,36(%esp)
|
---|
1043 | je .L020pw_end
|
---|
1044 | movl 36(%esp),%ebp
|
---|
1045 | cmpl $0,%ebp
|
---|
1046 | je .L020pw_end
|
---|
1047 | jge .L021pw_pos
|
---|
1048 |
|
---|
1049 | movl $0,%edx
|
---|
1050 | subl %ebp,%edx
|
---|
1051 | movl %edx,%ebp
|
---|
1052 | andl $4294967288,%ebp
|
---|
1053 | jz .L022pw_neg_finish
|
---|
1054 | .L023pw_neg_loop:
|
---|
1055 |
|
---|
1056 | movl $0,%ecx
|
---|
1057 | movl (%edi),%edx
|
---|
1058 | subl %eax,%ecx
|
---|
1059 | movl $0,%eax
|
---|
1060 | adcl %eax,%eax
|
---|
1061 | subl %edx,%ecx
|
---|
1062 | adcl $0,%eax
|
---|
1063 | movl %ecx,(%ebx)
|
---|
1064 |
|
---|
1065 | movl $0,%ecx
|
---|
1066 | movl 4(%edi),%edx
|
---|
1067 | subl %eax,%ecx
|
---|
1068 | movl $0,%eax
|
---|
1069 | adcl %eax,%eax
|
---|
1070 | subl %edx,%ecx
|
---|
1071 | adcl $0,%eax
|
---|
1072 | movl %ecx,4(%ebx)
|
---|
1073 |
|
---|
1074 | movl $0,%ecx
|
---|
1075 | movl 8(%edi),%edx
|
---|
1076 | subl %eax,%ecx
|
---|
1077 | movl $0,%eax
|
---|
1078 | adcl %eax,%eax
|
---|
1079 | subl %edx,%ecx
|
---|
1080 | adcl $0,%eax
|
---|
1081 | movl %ecx,8(%ebx)
|
---|
1082 |
|
---|
1083 | movl $0,%ecx
|
---|
1084 | movl 12(%edi),%edx
|
---|
1085 | subl %eax,%ecx
|
---|
1086 | movl $0,%eax
|
---|
1087 | adcl %eax,%eax
|
---|
1088 | subl %edx,%ecx
|
---|
1089 | adcl $0,%eax
|
---|
1090 | movl %ecx,12(%ebx)
|
---|
1091 |
|
---|
1092 | movl $0,%ecx
|
---|
1093 | movl 16(%edi),%edx
|
---|
1094 | subl %eax,%ecx
|
---|
1095 | movl $0,%eax
|
---|
1096 | adcl %eax,%eax
|
---|
1097 | subl %edx,%ecx
|
---|
1098 | adcl $0,%eax
|
---|
1099 | movl %ecx,16(%ebx)
|
---|
1100 |
|
---|
1101 | movl $0,%ecx
|
---|
1102 | movl 20(%edi),%edx
|
---|
1103 | subl %eax,%ecx
|
---|
1104 | movl $0,%eax
|
---|
1105 | adcl %eax,%eax
|
---|
1106 | subl %edx,%ecx
|
---|
1107 | adcl $0,%eax
|
---|
1108 | movl %ecx,20(%ebx)
|
---|
1109 |
|
---|
1110 | movl $0,%ecx
|
---|
1111 | movl 24(%edi),%edx
|
---|
1112 | subl %eax,%ecx
|
---|
1113 | movl $0,%eax
|
---|
1114 | adcl %eax,%eax
|
---|
1115 | subl %edx,%ecx
|
---|
1116 | adcl $0,%eax
|
---|
1117 | movl %ecx,24(%ebx)
|
---|
1118 |
|
---|
1119 | movl $0,%ecx
|
---|
1120 | movl 28(%edi),%edx
|
---|
1121 | subl %eax,%ecx
|
---|
1122 | movl $0,%eax
|
---|
1123 | adcl %eax,%eax
|
---|
1124 | subl %edx,%ecx
|
---|
1125 | adcl $0,%eax
|
---|
1126 | movl %ecx,28(%ebx)
|
---|
1127 |
|
---|
1128 | addl $32,%edi
|
---|
1129 | addl $32,%ebx
|
---|
1130 | subl $8,%ebp
|
---|
1131 | jnz .L023pw_neg_loop
|
---|
1132 | .L022pw_neg_finish:
|
---|
1133 | movl 36(%esp),%edx
|
---|
1134 | movl $0,%ebp
|
---|
1135 | subl %edx,%ebp
|
---|
1136 | andl $7,%ebp
|
---|
1137 | jz .L020pw_end
|
---|
1138 |
|
---|
1139 | movl $0,%ecx
|
---|
1140 | movl (%edi),%edx
|
---|
1141 | subl %eax,%ecx
|
---|
1142 | movl $0,%eax
|
---|
1143 | adcl %eax,%eax
|
---|
1144 | subl %edx,%ecx
|
---|
1145 | adcl $0,%eax
|
---|
1146 | decl %ebp
|
---|
1147 | movl %ecx,(%ebx)
|
---|
1148 | jz .L020pw_end
|
---|
1149 |
|
---|
1150 | movl $0,%ecx
|
---|
1151 | movl 4(%edi),%edx
|
---|
1152 | subl %eax,%ecx
|
---|
1153 | movl $0,%eax
|
---|
1154 | adcl %eax,%eax
|
---|
1155 | subl %edx,%ecx
|
---|
1156 | adcl $0,%eax
|
---|
1157 | decl %ebp
|
---|
1158 | movl %ecx,4(%ebx)
|
---|
1159 | jz .L020pw_end
|
---|
1160 |
|
---|
1161 | movl $0,%ecx
|
---|
1162 | movl 8(%edi),%edx
|
---|
1163 | subl %eax,%ecx
|
---|
1164 | movl $0,%eax
|
---|
1165 | adcl %eax,%eax
|
---|
1166 | subl %edx,%ecx
|
---|
1167 | adcl $0,%eax
|
---|
1168 | decl %ebp
|
---|
1169 | movl %ecx,8(%ebx)
|
---|
1170 | jz .L020pw_end
|
---|
1171 |
|
---|
1172 | movl $0,%ecx
|
---|
1173 | movl 12(%edi),%edx
|
---|
1174 | subl %eax,%ecx
|
---|
1175 | movl $0,%eax
|
---|
1176 | adcl %eax,%eax
|
---|
1177 | subl %edx,%ecx
|
---|
1178 | adcl $0,%eax
|
---|
1179 | decl %ebp
|
---|
1180 | movl %ecx,12(%ebx)
|
---|
1181 | jz .L020pw_end
|
---|
1182 |
|
---|
1183 | movl $0,%ecx
|
---|
1184 | movl 16(%edi),%edx
|
---|
1185 | subl %eax,%ecx
|
---|
1186 | movl $0,%eax
|
---|
1187 | adcl %eax,%eax
|
---|
1188 | subl %edx,%ecx
|
---|
1189 | adcl $0,%eax
|
---|
1190 | decl %ebp
|
---|
1191 | movl %ecx,16(%ebx)
|
---|
1192 | jz .L020pw_end
|
---|
1193 |
|
---|
1194 | movl $0,%ecx
|
---|
1195 | movl 20(%edi),%edx
|
---|
1196 | subl %eax,%ecx
|
---|
1197 | movl $0,%eax
|
---|
1198 | adcl %eax,%eax
|
---|
1199 | subl %edx,%ecx
|
---|
1200 | adcl $0,%eax
|
---|
1201 | decl %ebp
|
---|
1202 | movl %ecx,20(%ebx)
|
---|
1203 | jz .L020pw_end
|
---|
1204 |
|
---|
1205 | movl $0,%ecx
|
---|
1206 | movl 24(%edi),%edx
|
---|
1207 | subl %eax,%ecx
|
---|
1208 | movl $0,%eax
|
---|
1209 | adcl %eax,%eax
|
---|
1210 | subl %edx,%ecx
|
---|
1211 | adcl $0,%eax
|
---|
1212 | movl %ecx,24(%ebx)
|
---|
1213 | jmp .L020pw_end
|
---|
1214 | .L021pw_pos:
|
---|
1215 | andl $4294967288,%ebp
|
---|
1216 | jz .L024pw_pos_finish
|
---|
1217 | .L025pw_pos_loop:
|
---|
1218 |
|
---|
1219 | movl (%esi),%ecx
|
---|
1220 | subl %eax,%ecx
|
---|
1221 | movl %ecx,(%ebx)
|
---|
1222 | jnc .L026pw_nc0
|
---|
1223 |
|
---|
1224 | movl 4(%esi),%ecx
|
---|
1225 | subl %eax,%ecx
|
---|
1226 | movl %ecx,4(%ebx)
|
---|
1227 | jnc .L027pw_nc1
|
---|
1228 |
|
---|
1229 | movl 8(%esi),%ecx
|
---|
1230 | subl %eax,%ecx
|
---|
1231 | movl %ecx,8(%ebx)
|
---|
1232 | jnc .L028pw_nc2
|
---|
1233 |
|
---|
1234 | movl 12(%esi),%ecx
|
---|
1235 | subl %eax,%ecx
|
---|
1236 | movl %ecx,12(%ebx)
|
---|
1237 | jnc .L029pw_nc3
|
---|
1238 |
|
---|
1239 | movl 16(%esi),%ecx
|
---|
1240 | subl %eax,%ecx
|
---|
1241 | movl %ecx,16(%ebx)
|
---|
1242 | jnc .L030pw_nc4
|
---|
1243 |
|
---|
1244 | movl 20(%esi),%ecx
|
---|
1245 | subl %eax,%ecx
|
---|
1246 | movl %ecx,20(%ebx)
|
---|
1247 | jnc .L031pw_nc5
|
---|
1248 |
|
---|
1249 | movl 24(%esi),%ecx
|
---|
1250 | subl %eax,%ecx
|
---|
1251 | movl %ecx,24(%ebx)
|
---|
1252 | jnc .L032pw_nc6
|
---|
1253 |
|
---|
1254 | movl 28(%esi),%ecx
|
---|
1255 | subl %eax,%ecx
|
---|
1256 | movl %ecx,28(%ebx)
|
---|
1257 | jnc .L033pw_nc7
|
---|
1258 |
|
---|
1259 | addl $32,%esi
|
---|
1260 | addl $32,%ebx
|
---|
1261 | subl $8,%ebp
|
---|
1262 | jnz .L025pw_pos_loop
|
---|
1263 | .L024pw_pos_finish:
|
---|
1264 | movl 36(%esp),%ebp
|
---|
1265 | andl $7,%ebp
|
---|
1266 | jz .L020pw_end
|
---|
1267 |
|
---|
1268 | movl (%esi),%ecx
|
---|
1269 | subl %eax,%ecx
|
---|
1270 | movl %ecx,(%ebx)
|
---|
1271 | jnc .L034pw_tail_nc0
|
---|
1272 | decl %ebp
|
---|
1273 | jz .L020pw_end
|
---|
1274 |
|
---|
1275 | movl 4(%esi),%ecx
|
---|
1276 | subl %eax,%ecx
|
---|
1277 | movl %ecx,4(%ebx)
|
---|
1278 | jnc .L035pw_tail_nc1
|
---|
1279 | decl %ebp
|
---|
1280 | jz .L020pw_end
|
---|
1281 |
|
---|
1282 | movl 8(%esi),%ecx
|
---|
1283 | subl %eax,%ecx
|
---|
1284 | movl %ecx,8(%ebx)
|
---|
1285 | jnc .L036pw_tail_nc2
|
---|
1286 | decl %ebp
|
---|
1287 | jz .L020pw_end
|
---|
1288 |
|
---|
1289 | movl 12(%esi),%ecx
|
---|
1290 | subl %eax,%ecx
|
---|
1291 | movl %ecx,12(%ebx)
|
---|
1292 | jnc .L037pw_tail_nc3
|
---|
1293 | decl %ebp
|
---|
1294 | jz .L020pw_end
|
---|
1295 |
|
---|
1296 | movl 16(%esi),%ecx
|
---|
1297 | subl %eax,%ecx
|
---|
1298 | movl %ecx,16(%ebx)
|
---|
1299 | jnc .L038pw_tail_nc4
|
---|
1300 | decl %ebp
|
---|
1301 | jz .L020pw_end
|
---|
1302 |
|
---|
1303 | movl 20(%esi),%ecx
|
---|
1304 | subl %eax,%ecx
|
---|
1305 | movl %ecx,20(%ebx)
|
---|
1306 | jnc .L039pw_tail_nc5
|
---|
1307 | decl %ebp
|
---|
1308 | jz .L020pw_end
|
---|
1309 |
|
---|
1310 | movl 24(%esi),%ecx
|
---|
1311 | subl %eax,%ecx
|
---|
1312 | movl %ecx,24(%ebx)
|
---|
1313 | jnc .L040pw_tail_nc6
|
---|
1314 | movl $1,%eax
|
---|
1315 | jmp .L020pw_end
|
---|
1316 | .L041pw_nc_loop:
|
---|
1317 | movl (%esi),%ecx
|
---|
1318 | movl %ecx,(%ebx)
|
---|
1319 | .L026pw_nc0:
|
---|
1320 | movl 4(%esi),%ecx
|
---|
1321 | movl %ecx,4(%ebx)
|
---|
1322 | .L027pw_nc1:
|
---|
1323 | movl 8(%esi),%ecx
|
---|
1324 | movl %ecx,8(%ebx)
|
---|
1325 | .L028pw_nc2:
|
---|
1326 | movl 12(%esi),%ecx
|
---|
1327 | movl %ecx,12(%ebx)
|
---|
1328 | .L029pw_nc3:
|
---|
1329 | movl 16(%esi),%ecx
|
---|
1330 | movl %ecx,16(%ebx)
|
---|
1331 | .L030pw_nc4:
|
---|
1332 | movl 20(%esi),%ecx
|
---|
1333 | movl %ecx,20(%ebx)
|
---|
1334 | .L031pw_nc5:
|
---|
1335 | movl 24(%esi),%ecx
|
---|
1336 | movl %ecx,24(%ebx)
|
---|
1337 | .L032pw_nc6:
|
---|
1338 | movl 28(%esi),%ecx
|
---|
1339 | movl %ecx,28(%ebx)
|
---|
1340 | .L033pw_nc7:
|
---|
1341 |
|
---|
1342 | addl $32,%esi
|
---|
1343 | addl $32,%ebx
|
---|
1344 | subl $8,%ebp
|
---|
1345 | jnz .L041pw_nc_loop
|
---|
1346 | movl 36(%esp),%ebp
|
---|
1347 | andl $7,%ebp
|
---|
1348 | jz .L042pw_nc_end
|
---|
1349 | movl (%esi),%ecx
|
---|
1350 | movl %ecx,(%ebx)
|
---|
1351 | .L034pw_tail_nc0:
|
---|
1352 | decl %ebp
|
---|
1353 | jz .L042pw_nc_end
|
---|
1354 | movl 4(%esi),%ecx
|
---|
1355 | movl %ecx,4(%ebx)
|
---|
1356 | .L035pw_tail_nc1:
|
---|
1357 | decl %ebp
|
---|
1358 | jz .L042pw_nc_end
|
---|
1359 | movl 8(%esi),%ecx
|
---|
1360 | movl %ecx,8(%ebx)
|
---|
1361 | .L036pw_tail_nc2:
|
---|
1362 | decl %ebp
|
---|
1363 | jz .L042pw_nc_end
|
---|
1364 | movl 12(%esi),%ecx
|
---|
1365 | movl %ecx,12(%ebx)
|
---|
1366 | .L037pw_tail_nc3:
|
---|
1367 | decl %ebp
|
---|
1368 | jz .L042pw_nc_end
|
---|
1369 | movl 16(%esi),%ecx
|
---|
1370 | movl %ecx,16(%ebx)
|
---|
1371 | .L038pw_tail_nc4:
|
---|
1372 | decl %ebp
|
---|
1373 | jz .L042pw_nc_end
|
---|
1374 | movl 20(%esi),%ecx
|
---|
1375 | movl %ecx,20(%ebx)
|
---|
1376 | .L039pw_tail_nc5:
|
---|
1377 | decl %ebp
|
---|
1378 | jz .L042pw_nc_end
|
---|
1379 | movl 24(%esi),%ecx
|
---|
1380 | movl %ecx,24(%ebx)
|
---|
1381 | .L040pw_tail_nc6:
|
---|
1382 | .L042pw_nc_end:
|
---|
1383 | movl $0,%eax
|
---|
1384 | .L020pw_end:
|
---|
1385 | popl %edi
|
---|
1386 | popl %esi
|
---|
1387 | popl %ebx
|
---|
1388 | popl %ebp
|
---|
1389 | ret
|
---|
1390 | .size bn_sub_part_words,.-.L_bn_sub_part_words_begin
|
---|
1391 |
|
---|
1392 | .section ".note.gnu.property", "a"
|
---|
1393 | .p2align 2
|
---|
1394 | .long 1f - 0f
|
---|
1395 | .long 4f - 1f
|
---|
1396 | .long 5
|
---|
1397 | 0:
|
---|
1398 | .asciz "GNU"
|
---|
1399 | 1:
|
---|
1400 | .p2align 2
|
---|
1401 | .long 0xc0000002
|
---|
1402 | .long 3f - 2f
|
---|
1403 | 2:
|
---|
1404 | .long 3
|
---|
1405 | 3:
|
---|
1406 | .p2align 2
|
---|
1407 | 4:
|
---|