OLD | NEW |
1 #if defined(__x86_64__) | 1 #if defined(__x86_64__) |
2 .text | 2 .text |
3 | 3 |
4 | 4 |
5 | 5 |
6 .globl rsaz_512_sqr | 6 .globl rsaz_512_sqr |
| 7 .hidden rsaz_512_sqr |
7 .type rsaz_512_sqr,@function | 8 .type rsaz_512_sqr,@function |
8 .align 32 | 9 .align 32 |
9 rsaz_512_sqr: | 10 rsaz_512_sqr: |
10 pushq %rbx | 11 pushq %rbx |
11 pushq %rbp | 12 pushq %rbp |
12 pushq %r12 | 13 pushq %r12 |
13 pushq %r13 | 14 pushq %r13 |
14 pushq %r14 | 15 pushq %r14 |
15 pushq %r15 | 16 pushq %r15 |
16 | 17 |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 movq -40(%rax),%r14 | 390 movq -40(%rax),%r14 |
390 movq -32(%rax),%r13 | 391 movq -32(%rax),%r13 |
391 movq -24(%rax),%r12 | 392 movq -24(%rax),%r12 |
392 movq -16(%rax),%rbp | 393 movq -16(%rax),%rbp |
393 movq -8(%rax),%rbx | 394 movq -8(%rax),%rbx |
394 leaq (%rax),%rsp | 395 leaq (%rax),%rsp |
395 .Lsqr_epilogue: | 396 .Lsqr_epilogue: |
396 .byte 0xf3,0xc3 | 397 .byte 0xf3,0xc3 |
397 .size rsaz_512_sqr,.-rsaz_512_sqr | 398 .size rsaz_512_sqr,.-rsaz_512_sqr |
398 .globl rsaz_512_mul | 399 .globl rsaz_512_mul |
| 400 .hidden rsaz_512_mul |
399 .type rsaz_512_mul,@function | 401 .type rsaz_512_mul,@function |
400 .align 32 | 402 .align 32 |
401 rsaz_512_mul: | 403 rsaz_512_mul: |
402 pushq %rbx | 404 pushq %rbx |
403 pushq %rbp | 405 pushq %rbp |
404 pushq %r12 | 406 pushq %r12 |
405 pushq %r13 | 407 pushq %r13 |
406 pushq %r14 | 408 pushq %r14 |
407 pushq %r15 | 409 pushq %r15 |
408 | 410 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 movq -40(%rax),%r14 | 447 movq -40(%rax),%r14 |
446 movq -32(%rax),%r13 | 448 movq -32(%rax),%r13 |
447 movq -24(%rax),%r12 | 449 movq -24(%rax),%r12 |
448 movq -16(%rax),%rbp | 450 movq -16(%rax),%rbp |
449 movq -8(%rax),%rbx | 451 movq -8(%rax),%rbx |
450 leaq (%rax),%rsp | 452 leaq (%rax),%rsp |
451 .Lmul_epilogue: | 453 .Lmul_epilogue: |
452 .byte 0xf3,0xc3 | 454 .byte 0xf3,0xc3 |
453 .size rsaz_512_mul,.-rsaz_512_mul | 455 .size rsaz_512_mul,.-rsaz_512_mul |
454 .globl rsaz_512_mul_gather4 | 456 .globl rsaz_512_mul_gather4 |
| 457 .hidden rsaz_512_mul_gather4 |
455 .type rsaz_512_mul_gather4,@function | 458 .type rsaz_512_mul_gather4,@function |
456 .align 32 | 459 .align 32 |
457 rsaz_512_mul_gather4: | 460 rsaz_512_mul_gather4: |
458 pushq %rbx | 461 pushq %rbx |
459 pushq %rbp | 462 pushq %rbp |
460 pushq %r12 | 463 pushq %r12 |
461 pushq %r13 | 464 pushq %r13 |
462 pushq %r14 | 465 pushq %r14 |
463 pushq %r15 | 466 pushq %r15 |
464 | 467 |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 movq -40(%rax),%r14 | 651 movq -40(%rax),%r14 |
649 movq -32(%rax),%r13 | 652 movq -32(%rax),%r13 |
650 movq -24(%rax),%r12 | 653 movq -24(%rax),%r12 |
651 movq -16(%rax),%rbp | 654 movq -16(%rax),%rbp |
652 movq -8(%rax),%rbx | 655 movq -8(%rax),%rbx |
653 leaq (%rax),%rsp | 656 leaq (%rax),%rsp |
654 .Lmul_gather4_epilogue: | 657 .Lmul_gather4_epilogue: |
655 .byte 0xf3,0xc3 | 658 .byte 0xf3,0xc3 |
656 .size rsaz_512_mul_gather4,.-rsaz_512_mul_gather4 | 659 .size rsaz_512_mul_gather4,.-rsaz_512_mul_gather4 |
657 .globl rsaz_512_mul_scatter4 | 660 .globl rsaz_512_mul_scatter4 |
| 661 .hidden rsaz_512_mul_scatter4 |
658 .type rsaz_512_mul_scatter4,@function | 662 .type rsaz_512_mul_scatter4,@function |
659 .align 32 | 663 .align 32 |
660 rsaz_512_mul_scatter4: | 664 rsaz_512_mul_scatter4: |
661 pushq %rbx | 665 pushq %rbx |
662 pushq %rbp | 666 pushq %rbp |
663 pushq %r12 | 667 pushq %r12 |
664 pushq %r13 | 668 pushq %r13 |
665 pushq %r14 | 669 pushq %r14 |
666 pushq %r15 | 670 pushq %r15 |
667 | 671 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 movq -40(%rax),%r14 | 738 movq -40(%rax),%r14 |
735 movq -32(%rax),%r13 | 739 movq -32(%rax),%r13 |
736 movq -24(%rax),%r12 | 740 movq -24(%rax),%r12 |
737 movq -16(%rax),%rbp | 741 movq -16(%rax),%rbp |
738 movq -8(%rax),%rbx | 742 movq -8(%rax),%rbx |
739 leaq (%rax),%rsp | 743 leaq (%rax),%rsp |
740 .Lmul_scatter4_epilogue: | 744 .Lmul_scatter4_epilogue: |
741 .byte 0xf3,0xc3 | 745 .byte 0xf3,0xc3 |
742 .size rsaz_512_mul_scatter4,.-rsaz_512_mul_scatter4 | 746 .size rsaz_512_mul_scatter4,.-rsaz_512_mul_scatter4 |
743 .globl rsaz_512_mul_by_one | 747 .globl rsaz_512_mul_by_one |
| 748 .hidden rsaz_512_mul_by_one |
744 .type rsaz_512_mul_by_one,@function | 749 .type rsaz_512_mul_by_one,@function |
745 .align 32 | 750 .align 32 |
746 rsaz_512_mul_by_one: | 751 rsaz_512_mul_by_one: |
747 pushq %rbx | 752 pushq %rbx |
748 pushq %rbp | 753 pushq %rbp |
749 pushq %r12 | 754 pushq %r12 |
750 pushq %r13 | 755 pushq %r13 |
751 pushq %r14 | 756 pushq %r14 |
752 pushq %r15 | 757 pushq %r15 |
753 | 758 |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1070 movq %r10,16(%rdi) | 1075 movq %r10,16(%rdi) |
1071 movq %r11,24(%rdi) | 1076 movq %r11,24(%rdi) |
1072 movq %r12,32(%rdi) | 1077 movq %r12,32(%rdi) |
1073 movq %r13,40(%rdi) | 1078 movq %r13,40(%rdi) |
1074 movq %r14,48(%rdi) | 1079 movq %r14,48(%rdi) |
1075 movq %r15,56(%rdi) | 1080 movq %r15,56(%rdi) |
1076 | 1081 |
1077 .byte 0xf3,0xc3 | 1082 .byte 0xf3,0xc3 |
1078 .size __rsaz_512_mul,.-__rsaz_512_mul | 1083 .size __rsaz_512_mul,.-__rsaz_512_mul |
1079 .globl rsaz_512_scatter4 | 1084 .globl rsaz_512_scatter4 |
| 1085 .hidden rsaz_512_scatter4 |
1080 .type rsaz_512_scatter4,@function | 1086 .type rsaz_512_scatter4,@function |
1081 .align 16 | 1087 .align 16 |
1082 rsaz_512_scatter4: | 1088 rsaz_512_scatter4: |
1083 leaq (%rdi,%rdx,4),%rdi | 1089 leaq (%rdi,%rdx,4),%rdi |
1084 movl $8,%r9d | 1090 movl $8,%r9d |
1085 jmp .Loop_scatter | 1091 jmp .Loop_scatter |
1086 .align 16 | 1092 .align 16 |
1087 .Loop_scatter: | 1093 .Loop_scatter: |
1088 movq (%rsi),%rax | 1094 movq (%rsi),%rax |
1089 leaq 8(%rsi),%rsi | 1095 leaq 8(%rsi),%rsi |
1090 movl %eax,(%rdi) | 1096 movl %eax,(%rdi) |
1091 shrq $32,%rax | 1097 shrq $32,%rax |
1092 movl %eax,64(%rdi) | 1098 movl %eax,64(%rdi) |
1093 leaq 128(%rdi),%rdi | 1099 leaq 128(%rdi),%rdi |
1094 decl %r9d | 1100 decl %r9d |
1095 jnz .Loop_scatter | 1101 jnz .Loop_scatter |
1096 .byte 0xf3,0xc3 | 1102 .byte 0xf3,0xc3 |
1097 .size rsaz_512_scatter4,.-rsaz_512_scatter4 | 1103 .size rsaz_512_scatter4,.-rsaz_512_scatter4 |
1098 | 1104 |
1099 .globl rsaz_512_gather4 | 1105 .globl rsaz_512_gather4 |
| 1106 .hidden rsaz_512_gather4 |
1100 .type rsaz_512_gather4,@function | 1107 .type rsaz_512_gather4,@function |
1101 .align 16 | 1108 .align 16 |
1102 rsaz_512_gather4: | 1109 rsaz_512_gather4: |
1103 leaq (%rsi,%rdx,4),%rsi | 1110 leaq (%rsi,%rdx,4),%rsi |
1104 movl $8,%r9d | 1111 movl $8,%r9d |
1105 jmp .Loop_gather | 1112 jmp .Loop_gather |
1106 .align 16 | 1113 .align 16 |
1107 .Loop_gather: | 1114 .Loop_gather: |
1108 movl (%rsi),%eax | 1115 movl (%rsi),%eax |
1109 movl 64(%rsi),%r8d | 1116 movl 64(%rsi),%r8d |
1110 leaq 128(%rsi),%rsi | 1117 leaq 128(%rsi),%rsi |
1111 shlq $32,%r8 | 1118 shlq $32,%r8 |
1112 orq %r8,%rax | 1119 orq %r8,%rax |
1113 movq %rax,(%rdi) | 1120 movq %rax,(%rdi) |
1114 leaq 8(%rdi),%rdi | 1121 leaq 8(%rdi),%rdi |
1115 decl %r9d | 1122 decl %r9d |
1116 jnz .Loop_gather | 1123 jnz .Loop_gather |
1117 .byte 0xf3,0xc3 | 1124 .byte 0xf3,0xc3 |
1118 .size rsaz_512_gather4,.-rsaz_512_gather4 | 1125 .size rsaz_512_gather4,.-rsaz_512_gather4 |
1119 #endif | 1126 #endif |
OLD | NEW |