Index: third_party/boringssl/mac-x86/crypto/bn/co-586.S |
diff --git a/third_party/boringssl/linux-x86/crypto/bn/x86.S b/third_party/boringssl/mac-x86/crypto/bn/co-586.S |
similarity index 54% |
rename from third_party/boringssl/linux-x86/crypto/bn/x86.S |
rename to third_party/boringssl/mac-x86/crypto/bn/co-586.S |
index 5ec748a79773d41a6dec9209ae20fa95404f29f1..08f183b311b392ee3e00870daf9c53d24de69204 100644 |
--- a/third_party/boringssl/linux-x86/crypto/bn/x86.S |
+++ b/third_party/boringssl/mac-x86/crypto/bn/co-586.S |
@@ -1,871 +1,10 @@ |
#if defined(__i386__) |
-.file "src/crypto/bn/asm/x86.S" |
+.file "src/crypto/bn/asm/co-586.S" |
.text |
-.globl bn_mul_add_words |
-.type bn_mul_add_words,@function |
-.align 16 |
-bn_mul_add_words: |
-.L_bn_mul_add_words_begin: |
- pushl %ebp |
- pushl %ebx |
- pushl %esi |
- pushl %edi |
- |
- xorl %esi,%esi |
- movl 20(%esp),%edi |
- movl 28(%esp),%ecx |
- movl 24(%esp),%ebx |
- andl $4294967288,%ecx |
- movl 32(%esp),%ebp |
- pushl %ecx |
- jz .L000maw_finish |
-.L001maw_loop: |
- movl %ecx,(%esp) |
- |
- movl (%ebx),%eax |
- mull %ebp |
- addl %esi,%eax |
- movl (%edi),%esi |
- adcl $0,%edx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,(%edi) |
- movl %edx,%esi |
- |
- movl 4(%ebx),%eax |
- mull %ebp |
- addl %esi,%eax |
- movl 4(%edi),%esi |
- adcl $0,%edx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,4(%edi) |
- movl %edx,%esi |
- |
- movl 8(%ebx),%eax |
- mull %ebp |
- addl %esi,%eax |
- movl 8(%edi),%esi |
- adcl $0,%edx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,8(%edi) |
- movl %edx,%esi |
- |
- movl 12(%ebx),%eax |
- mull %ebp |
- addl %esi,%eax |
- movl 12(%edi),%esi |
- adcl $0,%edx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,12(%edi) |
- movl %edx,%esi |
- |
- movl 16(%ebx),%eax |
- mull %ebp |
- addl %esi,%eax |
- movl 16(%edi),%esi |
- adcl $0,%edx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,16(%edi) |
- movl %edx,%esi |
- |
- movl 20(%ebx),%eax |
- mull %ebp |
- addl %esi,%eax |
- movl 20(%edi),%esi |
- adcl $0,%edx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,20(%edi) |
- movl %edx,%esi |
- |
- movl 24(%ebx),%eax |
- mull %ebp |
- addl %esi,%eax |
- movl 24(%edi),%esi |
- adcl $0,%edx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,24(%edi) |
- movl %edx,%esi |
- |
- movl 28(%ebx),%eax |
- mull %ebp |
- addl %esi,%eax |
- movl 28(%edi),%esi |
- adcl $0,%edx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,28(%edi) |
- movl %edx,%esi |
- |
- movl (%esp),%ecx |
- addl $32,%ebx |
- addl $32,%edi |
- subl $8,%ecx |
- jnz .L001maw_loop |
-.L000maw_finish: |
- movl 32(%esp),%ecx |
- andl $7,%ecx |
- jnz .L002maw_finish2 |
- jmp .L003maw_end |
-.L002maw_finish2: |
- |
- movl (%ebx),%eax |
- mull %ebp |
- addl %esi,%eax |
- movl (%edi),%esi |
- adcl $0,%edx |
- addl %esi,%eax |
- adcl $0,%edx |
- decl %ecx |
- movl %eax,(%edi) |
- movl %edx,%esi |
- jz .L003maw_end |
- |
- movl 4(%ebx),%eax |
- mull %ebp |
- addl %esi,%eax |
- movl 4(%edi),%esi |
- adcl $0,%edx |
- addl %esi,%eax |
- adcl $0,%edx |
- decl %ecx |
- movl %eax,4(%edi) |
- movl %edx,%esi |
- jz .L003maw_end |
- |
- movl 8(%ebx),%eax |
- mull %ebp |
- addl %esi,%eax |
- movl 8(%edi),%esi |
- adcl $0,%edx |
- addl %esi,%eax |
- adcl $0,%edx |
- decl %ecx |
- movl %eax,8(%edi) |
- movl %edx,%esi |
- jz .L003maw_end |
- |
- movl 12(%ebx),%eax |
- mull %ebp |
- addl %esi,%eax |
- movl 12(%edi),%esi |
- adcl $0,%edx |
- addl %esi,%eax |
- adcl $0,%edx |
- decl %ecx |
- movl %eax,12(%edi) |
- movl %edx,%esi |
- jz .L003maw_end |
- |
- movl 16(%ebx),%eax |
- mull %ebp |
- addl %esi,%eax |
- movl 16(%edi),%esi |
- adcl $0,%edx |
- addl %esi,%eax |
- adcl $0,%edx |
- decl %ecx |
- movl %eax,16(%edi) |
- movl %edx,%esi |
- jz .L003maw_end |
- |
- movl 20(%ebx),%eax |
- mull %ebp |
- addl %esi,%eax |
- movl 20(%edi),%esi |
- adcl $0,%edx |
- addl %esi,%eax |
- adcl $0,%edx |
- decl %ecx |
- movl %eax,20(%edi) |
- movl %edx,%esi |
- jz .L003maw_end |
- |
- movl 24(%ebx),%eax |
- mull %ebp |
- addl %esi,%eax |
- movl 24(%edi),%esi |
- adcl $0,%edx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,24(%edi) |
- movl %edx,%esi |
-.L003maw_end: |
- movl %esi,%eax |
- popl %ecx |
- popl %edi |
- popl %esi |
- popl %ebx |
- popl %ebp |
- ret |
-.size bn_mul_add_words,.-.L_bn_mul_add_words_begin |
-.globl bn_mul_words |
-.type bn_mul_words,@function |
-.align 16 |
-bn_mul_words: |
-.L_bn_mul_words_begin: |
- pushl %ebp |
- pushl %ebx |
- pushl %esi |
- pushl %edi |
- |
- xorl %esi,%esi |
- movl 20(%esp),%edi |
- movl 24(%esp),%ebx |
- movl 28(%esp),%ebp |
- movl 32(%esp),%ecx |
- andl $4294967288,%ebp |
- jz .L004mw_finish |
-.L005mw_loop: |
- |
- movl (%ebx),%eax |
- mull %ecx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,(%edi) |
- movl %edx,%esi |
- |
- movl 4(%ebx),%eax |
- mull %ecx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,4(%edi) |
- movl %edx,%esi |
- |
- movl 8(%ebx),%eax |
- mull %ecx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,8(%edi) |
- movl %edx,%esi |
- |
- movl 12(%ebx),%eax |
- mull %ecx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,12(%edi) |
- movl %edx,%esi |
- |
- movl 16(%ebx),%eax |
- mull %ecx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,16(%edi) |
- movl %edx,%esi |
- |
- movl 20(%ebx),%eax |
- mull %ecx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,20(%edi) |
- movl %edx,%esi |
- |
- movl 24(%ebx),%eax |
- mull %ecx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,24(%edi) |
- movl %edx,%esi |
- |
- movl 28(%ebx),%eax |
- mull %ecx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,28(%edi) |
- movl %edx,%esi |
- |
- addl $32,%ebx |
- addl $32,%edi |
- subl $8,%ebp |
- jz .L004mw_finish |
- jmp .L005mw_loop |
-.L004mw_finish: |
- movl 28(%esp),%ebp |
- andl $7,%ebp |
- jnz .L006mw_finish2 |
- jmp .L007mw_end |
-.L006mw_finish2: |
- |
- movl (%ebx),%eax |
- mull %ecx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,(%edi) |
- movl %edx,%esi |
- decl %ebp |
- jz .L007mw_end |
- |
- movl 4(%ebx),%eax |
- mull %ecx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,4(%edi) |
- movl %edx,%esi |
- decl %ebp |
- jz .L007mw_end |
- |
- movl 8(%ebx),%eax |
- mull %ecx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,8(%edi) |
- movl %edx,%esi |
- decl %ebp |
- jz .L007mw_end |
- |
- movl 12(%ebx),%eax |
- mull %ecx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,12(%edi) |
- movl %edx,%esi |
- decl %ebp |
- jz .L007mw_end |
- |
- movl 16(%ebx),%eax |
- mull %ecx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,16(%edi) |
- movl %edx,%esi |
- decl %ebp |
- jz .L007mw_end |
- |
- movl 20(%ebx),%eax |
- mull %ecx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,20(%edi) |
- movl %edx,%esi |
- decl %ebp |
- jz .L007mw_end |
- |
- movl 24(%ebx),%eax |
- mull %ecx |
- addl %esi,%eax |
- adcl $0,%edx |
- movl %eax,24(%edi) |
- movl %edx,%esi |
-.L007mw_end: |
- movl %esi,%eax |
- popl %edi |
- popl %esi |
- popl %ebx |
- popl %ebp |
- ret |
-.size bn_mul_words,.-.L_bn_mul_words_begin |
-.globl bn_sqr_words |
-.type bn_sqr_words,@function |
-.align 16 |
-bn_sqr_words: |
-.L_bn_sqr_words_begin: |
- pushl %ebp |
- pushl %ebx |
- pushl %esi |
- pushl %edi |
- |
- movl 20(%esp),%esi |
- movl 24(%esp),%edi |
- movl 28(%esp),%ebx |
- andl $4294967288,%ebx |
- jz .L008sw_finish |
-.L009sw_loop: |
- |
- movl (%edi),%eax |
- mull %eax |
- movl %eax,(%esi) |
- movl %edx,4(%esi) |
- |
- movl 4(%edi),%eax |
- mull %eax |
- movl %eax,8(%esi) |
- movl %edx,12(%esi) |
- |
- movl 8(%edi),%eax |
- mull %eax |
- movl %eax,16(%esi) |
- movl %edx,20(%esi) |
- |
- movl 12(%edi),%eax |
- mull %eax |
- movl %eax,24(%esi) |
- movl %edx,28(%esi) |
- |
- movl 16(%edi),%eax |
- mull %eax |
- movl %eax,32(%esi) |
- movl %edx,36(%esi) |
- |
- movl 20(%edi),%eax |
- mull %eax |
- movl %eax,40(%esi) |
- movl %edx,44(%esi) |
- |
- movl 24(%edi),%eax |
- mull %eax |
- movl %eax,48(%esi) |
- movl %edx,52(%esi) |
- |
- movl 28(%edi),%eax |
- mull %eax |
- movl %eax,56(%esi) |
- movl %edx,60(%esi) |
- |
- addl $32,%edi |
- addl $64,%esi |
- subl $8,%ebx |
- jnz .L009sw_loop |
-.L008sw_finish: |
- movl 28(%esp),%ebx |
- andl $7,%ebx |
- jz .L010sw_end |
- |
- movl (%edi),%eax |
- mull %eax |
- movl %eax,(%esi) |
- decl %ebx |
- movl %edx,4(%esi) |
- jz .L010sw_end |
- |
- movl 4(%edi),%eax |
- mull %eax |
- movl %eax,8(%esi) |
- decl %ebx |
- movl %edx,12(%esi) |
- jz .L010sw_end |
- |
- movl 8(%edi),%eax |
- mull %eax |
- movl %eax,16(%esi) |
- decl %ebx |
- movl %edx,20(%esi) |
- jz .L010sw_end |
- |
- movl 12(%edi),%eax |
- mull %eax |
- movl %eax,24(%esi) |
- decl %ebx |
- movl %edx,28(%esi) |
- jz .L010sw_end |
- |
- movl 16(%edi),%eax |
- mull %eax |
- movl %eax,32(%esi) |
- decl %ebx |
- movl %edx,36(%esi) |
- jz .L010sw_end |
- |
- movl 20(%edi),%eax |
- mull %eax |
- movl %eax,40(%esi) |
- decl %ebx |
- movl %edx,44(%esi) |
- jz .L010sw_end |
- |
- movl 24(%edi),%eax |
- mull %eax |
- movl %eax,48(%esi) |
- movl %edx,52(%esi) |
-.L010sw_end: |
- popl %edi |
- popl %esi |
- popl %ebx |
- popl %ebp |
- ret |
-.size bn_sqr_words,.-.L_bn_sqr_words_begin |
-.globl bn_div_words |
-.type bn_div_words,@function |
-.align 16 |
-bn_div_words: |
-.L_bn_div_words_begin: |
- pushl %ebp |
- pushl %ebx |
- pushl %esi |
- pushl %edi |
- movl 20(%esp),%edx |
- movl 24(%esp),%eax |
- movl 28(%esp),%ebx |
- divl %ebx |
- popl %edi |
- popl %esi |
- popl %ebx |
- popl %ebp |
- ret |
-.size bn_div_words,.-.L_bn_div_words_begin |
-.globl bn_add_words |
-.type bn_add_words,@function |
-.align 16 |
-bn_add_words: |
-.L_bn_add_words_begin: |
- pushl %ebp |
- pushl %ebx |
- pushl %esi |
- pushl %edi |
- |
- movl 20(%esp),%ebx |
- movl 24(%esp),%esi |
- movl 28(%esp),%edi |
- movl 32(%esp),%ebp |
- xorl %eax,%eax |
- andl $4294967288,%ebp |
- jz .L011aw_finish |
-.L012aw_loop: |
- |
- movl (%esi),%ecx |
- movl (%edi),%edx |
- addl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- addl %edx,%ecx |
- adcl $0,%eax |
- movl %ecx,(%ebx) |
- |
- movl 4(%esi),%ecx |
- movl 4(%edi),%edx |
- addl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- addl %edx,%ecx |
- adcl $0,%eax |
- movl %ecx,4(%ebx) |
- |
- movl 8(%esi),%ecx |
- movl 8(%edi),%edx |
- addl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- addl %edx,%ecx |
- adcl $0,%eax |
- movl %ecx,8(%ebx) |
- |
- movl 12(%esi),%ecx |
- movl 12(%edi),%edx |
- addl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- addl %edx,%ecx |
- adcl $0,%eax |
- movl %ecx,12(%ebx) |
- |
- movl 16(%esi),%ecx |
- movl 16(%edi),%edx |
- addl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- addl %edx,%ecx |
- adcl $0,%eax |
- movl %ecx,16(%ebx) |
- |
- movl 20(%esi),%ecx |
- movl 20(%edi),%edx |
- addl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- addl %edx,%ecx |
- adcl $0,%eax |
- movl %ecx,20(%ebx) |
- |
- movl 24(%esi),%ecx |
- movl 24(%edi),%edx |
- addl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- addl %edx,%ecx |
- adcl $0,%eax |
- movl %ecx,24(%ebx) |
- |
- movl 28(%esi),%ecx |
- movl 28(%edi),%edx |
- addl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- addl %edx,%ecx |
- adcl $0,%eax |
- movl %ecx,28(%ebx) |
- |
- addl $32,%esi |
- addl $32,%edi |
- addl $32,%ebx |
- subl $8,%ebp |
- jnz .L012aw_loop |
-.L011aw_finish: |
- movl 32(%esp),%ebp |
- andl $7,%ebp |
- jz .L013aw_end |
- |
- movl (%esi),%ecx |
- movl (%edi),%edx |
- addl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- addl %edx,%ecx |
- adcl $0,%eax |
- decl %ebp |
- movl %ecx,(%ebx) |
- jz .L013aw_end |
- |
- movl 4(%esi),%ecx |
- movl 4(%edi),%edx |
- addl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- addl %edx,%ecx |
- adcl $0,%eax |
- decl %ebp |
- movl %ecx,4(%ebx) |
- jz .L013aw_end |
- |
- movl 8(%esi),%ecx |
- movl 8(%edi),%edx |
- addl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- addl %edx,%ecx |
- adcl $0,%eax |
- decl %ebp |
- movl %ecx,8(%ebx) |
- jz .L013aw_end |
- |
- movl 12(%esi),%ecx |
- movl 12(%edi),%edx |
- addl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- addl %edx,%ecx |
- adcl $0,%eax |
- decl %ebp |
- movl %ecx,12(%ebx) |
- jz .L013aw_end |
- |
- movl 16(%esi),%ecx |
- movl 16(%edi),%edx |
- addl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- addl %edx,%ecx |
- adcl $0,%eax |
- decl %ebp |
- movl %ecx,16(%ebx) |
- jz .L013aw_end |
- |
- movl 20(%esi),%ecx |
- movl 20(%edi),%edx |
- addl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- addl %edx,%ecx |
- adcl $0,%eax |
- decl %ebp |
- movl %ecx,20(%ebx) |
- jz .L013aw_end |
- |
- movl 24(%esi),%ecx |
- movl 24(%edi),%edx |
- addl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- addl %edx,%ecx |
- adcl $0,%eax |
- movl %ecx,24(%ebx) |
-.L013aw_end: |
- popl %edi |
- popl %esi |
- popl %ebx |
- popl %ebp |
- ret |
-.size bn_add_words,.-.L_bn_add_words_begin |
-.globl bn_sub_words |
-.type bn_sub_words,@function |
-.align 16 |
-bn_sub_words: |
-.L_bn_sub_words_begin: |
- pushl %ebp |
- pushl %ebx |
- pushl %esi |
- pushl %edi |
- |
- movl 20(%esp),%ebx |
- movl 24(%esp),%esi |
- movl 28(%esp),%edi |
- movl 32(%esp),%ebp |
- xorl %eax,%eax |
- andl $4294967288,%ebp |
- jz .L014aw_finish |
-.L015aw_loop: |
- |
- movl (%esi),%ecx |
- movl (%edi),%edx |
- subl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- subl %edx,%ecx |
- adcl $0,%eax |
- movl %ecx,(%ebx) |
- |
- movl 4(%esi),%ecx |
- movl 4(%edi),%edx |
- subl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- subl %edx,%ecx |
- adcl $0,%eax |
- movl %ecx,4(%ebx) |
- |
- movl 8(%esi),%ecx |
- movl 8(%edi),%edx |
- subl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- subl %edx,%ecx |
- adcl $0,%eax |
- movl %ecx,8(%ebx) |
- |
- movl 12(%esi),%ecx |
- movl 12(%edi),%edx |
- subl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- subl %edx,%ecx |
- adcl $0,%eax |
- movl %ecx,12(%ebx) |
- |
- movl 16(%esi),%ecx |
- movl 16(%edi),%edx |
- subl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- subl %edx,%ecx |
- adcl $0,%eax |
- movl %ecx,16(%ebx) |
- |
- movl 20(%esi),%ecx |
- movl 20(%edi),%edx |
- subl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- subl %edx,%ecx |
- adcl $0,%eax |
- movl %ecx,20(%ebx) |
- |
- movl 24(%esi),%ecx |
- movl 24(%edi),%edx |
- subl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- subl %edx,%ecx |
- adcl $0,%eax |
- movl %ecx,24(%ebx) |
- |
- movl 28(%esi),%ecx |
- movl 28(%edi),%edx |
- subl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- subl %edx,%ecx |
- adcl $0,%eax |
- movl %ecx,28(%ebx) |
- |
- addl $32,%esi |
- addl $32,%edi |
- addl $32,%ebx |
- subl $8,%ebp |
- jnz .L015aw_loop |
-.L014aw_finish: |
- movl 32(%esp),%ebp |
- andl $7,%ebp |
- jz .L016aw_end |
- |
- movl (%esi),%ecx |
- movl (%edi),%edx |
- subl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- subl %edx,%ecx |
- adcl $0,%eax |
- decl %ebp |
- movl %ecx,(%ebx) |
- jz .L016aw_end |
- |
- movl 4(%esi),%ecx |
- movl 4(%edi),%edx |
- subl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- subl %edx,%ecx |
- adcl $0,%eax |
- decl %ebp |
- movl %ecx,4(%ebx) |
- jz .L016aw_end |
- |
- movl 8(%esi),%ecx |
- movl 8(%edi),%edx |
- subl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- subl %edx,%ecx |
- adcl $0,%eax |
- decl %ebp |
- movl %ecx,8(%ebx) |
- jz .L016aw_end |
- |
- movl 12(%esi),%ecx |
- movl 12(%edi),%edx |
- subl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- subl %edx,%ecx |
- adcl $0,%eax |
- decl %ebp |
- movl %ecx,12(%ebx) |
- jz .L016aw_end |
- |
- movl 16(%esi),%ecx |
- movl 16(%edi),%edx |
- subl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- subl %edx,%ecx |
- adcl $0,%eax |
- decl %ebp |
- movl %ecx,16(%ebx) |
- jz .L016aw_end |
- |
- movl 20(%esi),%ecx |
- movl 20(%edi),%edx |
- subl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- subl %edx,%ecx |
- adcl $0,%eax |
- decl %ebp |
- movl %ecx,20(%ebx) |
- jz .L016aw_end |
- |
- movl 24(%esi),%ecx |
- movl 24(%edi),%edx |
- subl %eax,%ecx |
- movl $0,%eax |
- adcl %eax,%eax |
- subl %edx,%ecx |
- adcl $0,%eax |
- movl %ecx,24(%ebx) |
-.L016aw_end: |
- popl %edi |
- popl %esi |
- popl %ebx |
- popl %ebp |
- ret |
-.size bn_sub_words,.-.L_bn_sub_words_begin |
-.globl bn_mul_comba8 |
-.type bn_mul_comba8,@function |
-.align 16 |
-bn_mul_comba8: |
-.L_bn_mul_comba8_begin: |
+.globl _bn_mul_comba8 |
+.align 4 |
+_bn_mul_comba8: |
+L_bn_mul_comba8_begin: |
pushl %esi |
movl 12(%esp),%esi |
pushl %edi |
@@ -876,9 +15,9 @@ bn_mul_comba8: |
movl (%esi),%eax |
xorl %ecx,%ecx |
movl (%edi),%edx |
- |
+ # ################## Calculate word 0 |
xorl %ebp,%ebp |
- |
+ # mul a[0]*b[0] |
mull %edx |
addl %eax,%ebx |
movl 20(%esp),%eax |
@@ -887,17 +26,17 @@ bn_mul_comba8: |
adcl $0,%ebp |
movl %ebx,(%eax) |
movl 4(%esi),%eax |
- |
- |
+ # saved r[0] |
+ # ################## Calculate word 1 |
xorl %ebx,%ebx |
- |
+ # mul a[1]*b[0] |
mull %edx |
addl %eax,%ecx |
movl (%esi),%eax |
adcl %edx,%ebp |
movl 4(%edi),%edx |
adcl $0,%ebx |
- |
+ # mul a[0]*b[1] |
mull %edx |
addl %eax,%ecx |
movl 20(%esp),%eax |
@@ -906,24 +45,24 @@ bn_mul_comba8: |
adcl $0,%ebx |
movl %ecx,4(%eax) |
movl 8(%esi),%eax |
- |
- |
+ # saved r[1] |
+ # ################## Calculate word 2 |
xorl %ecx,%ecx |
- |
+ # mul a[2]*b[0] |
mull %edx |
addl %eax,%ebp |
movl 4(%esi),%eax |
adcl %edx,%ebx |
movl 4(%edi),%edx |
adcl $0,%ecx |
- |
+ # mul a[1]*b[1] |
mull %edx |
addl %eax,%ebp |
movl (%esi),%eax |
adcl %edx,%ebx |
movl 8(%edi),%edx |
adcl $0,%ecx |
- |
+ # mul a[0]*b[2] |
mull %edx |
addl %eax,%ebp |
movl 20(%esp),%eax |
@@ -932,31 +71,31 @@ bn_mul_comba8: |
adcl $0,%ecx |
movl %ebp,8(%eax) |
movl 12(%esi),%eax |
- |
- |
+ # saved r[2] |
+ # ################## Calculate word 3 |
xorl %ebp,%ebp |
- |
+ # mul a[3]*b[0] |
mull %edx |
addl %eax,%ebx |
movl 8(%esi),%eax |
adcl %edx,%ecx |
movl 4(%edi),%edx |
adcl $0,%ebp |
- |
+ # mul a[2]*b[1] |
mull %edx |
addl %eax,%ebx |
movl 4(%esi),%eax |
adcl %edx,%ecx |
movl 8(%edi),%edx |
adcl $0,%ebp |
- |
+ # mul a[1]*b[2] |
mull %edx |
addl %eax,%ebx |
movl (%esi),%eax |
adcl %edx,%ecx |
movl 12(%edi),%edx |
adcl $0,%ebp |
- |
+ # mul a[0]*b[3] |
mull %edx |
addl %eax,%ebx |
movl 20(%esp),%eax |
@@ -965,38 +104,38 @@ bn_mul_comba8: |
adcl $0,%ebp |
movl %ebx,12(%eax) |
movl 16(%esi),%eax |
- |
- |
+ # saved r[3] |
+ # ################## Calculate word 4 |
xorl %ebx,%ebx |
- |
+ # mul a[4]*b[0] |
mull %edx |
addl %eax,%ecx |
movl 12(%esi),%eax |
adcl %edx,%ebp |
movl 4(%edi),%edx |
adcl $0,%ebx |
- |
+ # mul a[3]*b[1] |
mull %edx |
addl %eax,%ecx |
movl 8(%esi),%eax |
adcl %edx,%ebp |
movl 8(%edi),%edx |
adcl $0,%ebx |
- |
+ # mul a[2]*b[2] |
mull %edx |
addl %eax,%ecx |
movl 4(%esi),%eax |
adcl %edx,%ebp |
movl 12(%edi),%edx |
adcl $0,%ebx |
- |
+ # mul a[1]*b[3] |
mull %edx |
addl %eax,%ecx |
movl (%esi),%eax |
adcl %edx,%ebp |
movl 16(%edi),%edx |
adcl $0,%ebx |
- |
+ # mul a[0]*b[4] |
mull %edx |
addl %eax,%ecx |
movl 20(%esp),%eax |
@@ -1005,45 +144,45 @@ bn_mul_comba8: |
adcl $0,%ebx |
movl %ecx,16(%eax) |
movl 20(%esi),%eax |
- |
- |
+ # saved r[4] |
+ # ################## Calculate word 5 |
xorl %ecx,%ecx |
- |
+ # mul a[5]*b[0] |
mull %edx |
addl %eax,%ebp |
movl 16(%esi),%eax |
adcl %edx,%ebx |
movl 4(%edi),%edx |
adcl $0,%ecx |
- |
+ # mul a[4]*b[1] |
mull %edx |
addl %eax,%ebp |
movl 12(%esi),%eax |
adcl %edx,%ebx |
movl 8(%edi),%edx |
adcl $0,%ecx |
- |
+ # mul a[3]*b[2] |
mull %edx |
addl %eax,%ebp |
movl 8(%esi),%eax |
adcl %edx,%ebx |
movl 12(%edi),%edx |
adcl $0,%ecx |
- |
+ # mul a[2]*b[3] |
mull %edx |
addl %eax,%ebp |
movl 4(%esi),%eax |
adcl %edx,%ebx |
movl 16(%edi),%edx |
adcl $0,%ecx |
- |
+ # mul a[1]*b[4] |
mull %edx |
addl %eax,%ebp |
movl (%esi),%eax |
adcl %edx,%ebx |
movl 20(%edi),%edx |
adcl $0,%ecx |
- |
+ # mul a[0]*b[5] |
mull %edx |
addl %eax,%ebp |
movl 20(%esp),%eax |
@@ -1052,52 +191,52 @@ bn_mul_comba8: |
adcl $0,%ecx |
movl %ebp,20(%eax) |
movl 24(%esi),%eax |
- |
- |
+ # saved r[5] |
+ # ################## Calculate word 6 |
xorl %ebp,%ebp |
- |
+ # mul a[6]*b[0] |
mull %edx |
addl %eax,%ebx |
movl 20(%esi),%eax |
adcl %edx,%ecx |
movl 4(%edi),%edx |
adcl $0,%ebp |
- |
+ # mul a[5]*b[1] |
mull %edx |
addl %eax,%ebx |
movl 16(%esi),%eax |
adcl %edx,%ecx |
movl 8(%edi),%edx |
adcl $0,%ebp |
- |
+ # mul a[4]*b[2] |
mull %edx |
addl %eax,%ebx |
movl 12(%esi),%eax |
adcl %edx,%ecx |
movl 12(%edi),%edx |
adcl $0,%ebp |
- |
+ # mul a[3]*b[3] |
mull %edx |
addl %eax,%ebx |
movl 8(%esi),%eax |
adcl %edx,%ecx |
movl 16(%edi),%edx |
adcl $0,%ebp |
- |
+ # mul a[2]*b[4] |
mull %edx |
addl %eax,%ebx |
movl 4(%esi),%eax |
adcl %edx,%ecx |
movl 20(%edi),%edx |
adcl $0,%ebp |
- |
+ # mul a[1]*b[5] |
mull %edx |
addl %eax,%ebx |
movl (%esi),%eax |
adcl %edx,%ecx |
movl 24(%edi),%edx |
adcl $0,%ebp |
- |
+ # mul a[0]*b[6] |
mull %edx |
addl %eax,%ebx |
movl 20(%esp),%eax |
@@ -1106,59 +245,59 @@ bn_mul_comba8: |
adcl $0,%ebp |
movl %ebx,24(%eax) |
movl 28(%esi),%eax |
- |
- |
+ # saved r[6] |
+ # ################## Calculate word 7 |
xorl %ebx,%ebx |
- |
+ # mul a[7]*b[0] |
mull %edx |
addl %eax,%ecx |
movl 24(%esi),%eax |
adcl %edx,%ebp |
movl 4(%edi),%edx |
adcl $0,%ebx |
- |
+ # mul a[6]*b[1] |
mull %edx |
addl %eax,%ecx |
movl 20(%esi),%eax |
adcl %edx,%ebp |
movl 8(%edi),%edx |
adcl $0,%ebx |
- |
+ # mul a[5]*b[2] |
mull %edx |
addl %eax,%ecx |
movl 16(%esi),%eax |
adcl %edx,%ebp |
movl 12(%edi),%edx |
adcl $0,%ebx |
- |
+ # mul a[4]*b[3] |
mull %edx |
addl %eax,%ecx |
movl 12(%esi),%eax |
adcl %edx,%ebp |
movl 16(%edi),%edx |
adcl $0,%ebx |
- |
+ # mul a[3]*b[4] |
mull %edx |
addl %eax,%ecx |
movl 8(%esi),%eax |
adcl %edx,%ebp |
movl 20(%edi),%edx |
adcl $0,%ebx |
- |
+ # mul a[2]*b[5] |
mull %edx |
addl %eax,%ecx |
movl 4(%esi),%eax |
adcl %edx,%ebp |
movl 24(%edi),%edx |
adcl $0,%ebx |
- |
+ # mul a[1]*b[6] |
mull %edx |
addl %eax,%ecx |
movl (%esi),%eax |
adcl %edx,%ebp |
movl 28(%edi),%edx |
adcl $0,%ebx |
- |
+ # mul a[0]*b[7] |
mull %edx |
addl %eax,%ecx |
movl 20(%esp),%eax |
@@ -1167,52 +306,52 @@ bn_mul_comba8: |
adcl $0,%ebx |
movl %ecx,28(%eax) |
movl 28(%esi),%eax |
- |
- |
+ # saved r[7] |
+ # ################## Calculate word 8 |
xorl %ecx,%ecx |
- |
+ # mul a[7]*b[1] |
mull %edx |
addl %eax,%ebp |
movl 24(%esi),%eax |
adcl %edx,%ebx |
movl 8(%edi),%edx |
adcl $0,%ecx |
- |
+ # mul a[6]*b[2] |
mull %edx |
addl %eax,%ebp |
movl 20(%esi),%eax |
adcl %edx,%ebx |
movl 12(%edi),%edx |
adcl $0,%ecx |
- |
+ # mul a[5]*b[3] |
mull %edx |
addl %eax,%ebp |
movl 16(%esi),%eax |
adcl %edx,%ebx |
movl 16(%edi),%edx |
adcl $0,%ecx |
- |
+ # mul a[4]*b[4] |
mull %edx |
addl %eax,%ebp |
movl 12(%esi),%eax |
adcl %edx,%ebx |
movl 20(%edi),%edx |
adcl $0,%ecx |
- |
+ # mul a[3]*b[5] |
mull %edx |
addl %eax,%ebp |
movl 8(%esi),%eax |
adcl %edx,%ebx |
movl 24(%edi),%edx |
adcl $0,%ecx |
- |
+ # mul a[2]*b[6] |
mull %edx |
addl %eax,%ebp |
movl 4(%esi),%eax |
adcl %edx,%ebx |
movl 28(%edi),%edx |
adcl $0,%ecx |
- |
+ # mul a[1]*b[7] |
mull %edx |
addl %eax,%ebp |
movl 20(%esp),%eax |
@@ -1221,45 +360,45 @@ bn_mul_comba8: |
adcl $0,%ecx |
movl %ebp,32(%eax) |
movl 28(%esi),%eax |
- |
- |
+ # saved r[8] |
+ # ################## Calculate word 9 |
xorl %ebp,%ebp |
- |
+ # mul a[7]*b[2] |
mull %edx |
addl %eax,%ebx |
movl 24(%esi),%eax |
adcl %edx,%ecx |
movl 12(%edi),%edx |
adcl $0,%ebp |
- |
+ # mul a[6]*b[3] |
mull %edx |
addl %eax,%ebx |
movl 20(%esi),%eax |
adcl %edx,%ecx |
movl 16(%edi),%edx |
adcl $0,%ebp |
- |
+ # mul a[5]*b[4] |
mull %edx |
addl %eax,%ebx |
movl 16(%esi),%eax |
adcl %edx,%ecx |
movl 20(%edi),%edx |
adcl $0,%ebp |
- |
+ # mul a[4]*b[5] |
mull %edx |
addl %eax,%ebx |
movl 12(%esi),%eax |
adcl %edx,%ecx |
movl 24(%edi),%edx |
adcl $0,%ebp |
- |
+ # mul a[3]*b[6] |
mull %edx |
addl %eax,%ebx |
movl 8(%esi),%eax |
adcl %edx,%ecx |
movl 28(%edi),%edx |
adcl $0,%ebp |
- |
+ # mul a[2]*b[7] |
mull %edx |
addl %eax,%ebx |
movl 20(%esp),%eax |
@@ -1268,38 +407,38 @@ bn_mul_comba8: |
adcl $0,%ebp |
movl %ebx,36(%eax) |
movl 28(%esi),%eax |
- |
- |
+ # saved r[9] |
+ # ################## Calculate word 10 |
xorl %ebx,%ebx |
- |
+ # mul a[7]*b[3] |
mull %edx |
addl %eax,%ecx |
movl 24(%esi),%eax |
adcl %edx,%ebp |
movl 16(%edi),%edx |
adcl $0,%ebx |
- |
+ # mul a[6]*b[4] |
mull %edx |
addl %eax,%ecx |
movl 20(%esi),%eax |
adcl %edx,%ebp |
movl 20(%edi),%edx |
adcl $0,%ebx |
- |
+ # mul a[5]*b[5] |
mull %edx |
addl %eax,%ecx |
movl 16(%esi),%eax |
adcl %edx,%ebp |
movl 24(%edi),%edx |
adcl $0,%ebx |
- |
+ # mul a[4]*b[6] |
mull %edx |
addl %eax,%ecx |
movl 12(%esi),%eax |
adcl %edx,%ebp |
movl 28(%edi),%edx |
adcl $0,%ebx |
- |
+ # mul a[3]*b[7] |
mull %edx |
addl %eax,%ecx |
movl 20(%esp),%eax |
@@ -1308,31 +447,31 @@ bn_mul_comba8: |
adcl $0,%ebx |
movl %ecx,40(%eax) |
movl 28(%esi),%eax |
- |
- |
+ # saved r[10] |
+ # ################## Calculate word 11 |
xorl %ecx,%ecx |
- |
+ # mul a[7]*b[4] |
mull %edx |
addl %eax,%ebp |
movl 24(%esi),%eax |
adcl %edx,%ebx |
movl 20(%edi),%edx |
adcl $0,%ecx |
- |
+ # mul a[6]*b[5] |
mull %edx |
addl %eax,%ebp |
movl 20(%esi),%eax |
adcl %edx,%ebx |
movl 24(%edi),%edx |
adcl $0,%ecx |
- |
+ # mul a[5]*b[6] |
mull %edx |
addl %eax,%ebp |
movl 16(%esi),%eax |
adcl %edx,%ebx |
movl 28(%edi),%edx |
adcl $0,%ecx |
- |
+ # mul a[4]*b[7] |
mull %edx |
addl %eax,%ebp |
movl 20(%esp),%eax |
@@ -1341,24 +480,24 @@ bn_mul_comba8: |
adcl $0,%ecx |
movl %ebp,44(%eax) |
movl 28(%esi),%eax |
- |
- |
+ # saved r[11] |
+ # ################## Calculate word 12 |
xorl %ebp,%ebp |
- |
+ # mul a[7]*b[5] |
mull %edx |
addl %eax,%ebx |
movl 24(%esi),%eax |
adcl %edx,%ecx |
movl 24(%edi),%edx |
adcl $0,%ebp |
- |
+ # mul a[6]*b[6] |
mull %edx |
addl %eax,%ebx |
movl 20(%esi),%eax |
adcl %edx,%ecx |
movl 28(%edi),%edx |
adcl $0,%ebp |
- |
+ # mul a[5]*b[7] |
mull %edx |
addl %eax,%ebx |
movl 20(%esp),%eax |
@@ -1367,17 +506,17 @@ bn_mul_comba8: |
adcl $0,%ebp |
movl %ebx,48(%eax) |
movl 28(%esi),%eax |
- |
- |
+ # saved r[12] |
+ # ################## Calculate word 13 |
xorl %ebx,%ebx |
- |
+ # mul a[7]*b[6] |
mull %edx |
addl %eax,%ecx |
movl 24(%esi),%eax |
adcl %edx,%ebp |
movl 28(%edi),%edx |
adcl $0,%ebx |
- |
+ # mul a[6]*b[7] |
mull %edx |
addl %eax,%ecx |
movl 20(%esp),%eax |
@@ -1386,30 +525,28 @@ bn_mul_comba8: |
adcl $0,%ebx |
movl %ecx,52(%eax) |
movl 28(%esi),%eax |
- |
- |
+ # saved r[13] |
+ # ################## Calculate word 14 |
xorl %ecx,%ecx |
- |
+ # mul a[7]*b[7] |
mull %edx |
addl %eax,%ebp |
movl 20(%esp),%eax |
adcl %edx,%ebx |
adcl $0,%ecx |
movl %ebp,56(%eax) |
- |
- |
+ # saved r[14] |
+ # save r[15] |
movl %ebx,60(%eax) |
popl %ebx |
popl %ebp |
popl %edi |
popl %esi |
ret |
-.size bn_mul_comba8,.-.L_bn_mul_comba8_begin |
-.globl bn_mul_comba4 |
-.type bn_mul_comba4,@function |
-.align 16 |
-bn_mul_comba4: |
-.L_bn_mul_comba4_begin: |
+.globl _bn_mul_comba4 |
+.align 4 |
+_bn_mul_comba4: |
+L_bn_mul_comba4_begin: |
pushl %esi |
movl 12(%esp),%esi |
pushl %edi |
@@ -1420,9 +557,9 @@ bn_mul_comba4: |
movl (%esi),%eax |
xorl %ecx,%ecx |
movl (%edi),%edx |
- |
+ # ################## Calculate word 0 |
xorl %ebp,%ebp |
- |
+ # mul a[0]*b[0] |
mull %edx |
addl %eax,%ebx |
movl 20(%esp),%eax |
@@ -1431,17 +568,17 @@ bn_mul_comba4: |
adcl $0,%ebp |
movl %ebx,(%eax) |
movl 4(%esi),%eax |
- |
- |
+ # saved r[0] |
+ # ################## Calculate word 1 |
xorl %ebx,%ebx |
- |
+ # mul a[1]*b[0] |
mull %edx |
addl %eax,%ecx |
movl (%esi),%eax |
adcl %edx,%ebp |
movl 4(%edi),%edx |
adcl $0,%ebx |
- |
+ # mul a[0]*b[1] |
mull %edx |
addl %eax,%ecx |
movl 20(%esp),%eax |
@@ -1450,24 +587,24 @@ bn_mul_comba4: |
adcl $0,%ebx |
movl %ecx,4(%eax) |
movl 8(%esi),%eax |
- |
- |
+ # saved r[1] |
+ # ################## Calculate word 2 |
xorl %ecx,%ecx |
- |
+ # mul a[2]*b[0] |
mull %edx |
addl %eax,%ebp |
movl 4(%esi),%eax |
adcl %edx,%ebx |
movl 4(%edi),%edx |
adcl $0,%ecx |
- |
+ # mul a[1]*b[1] |
mull %edx |
addl %eax,%ebp |
movl (%esi),%eax |
adcl %edx,%ebx |
movl 8(%edi),%edx |
adcl $0,%ecx |
- |
+ # mul a[0]*b[2] |
mull %edx |
addl %eax,%ebp |
movl 20(%esp),%eax |
@@ -1476,31 +613,31 @@ bn_mul_comba4: |
adcl $0,%ecx |
movl %ebp,8(%eax) |
movl 12(%esi),%eax |
- |
- |
+ # saved r[2] |
+ # ################## Calculate word 3 |
xorl %ebp,%ebp |
- |
+ # mul a[3]*b[0] |
mull %edx |
addl %eax,%ebx |
movl 8(%esi),%eax |
adcl %edx,%ecx |
movl 4(%edi),%edx |
adcl $0,%ebp |
- |
+ # mul a[2]*b[1] |
mull %edx |
addl %eax,%ebx |
movl 4(%esi),%eax |
adcl %edx,%ecx |
movl 8(%edi),%edx |
adcl $0,%ebp |
- |
+ # mul a[1]*b[2] |
mull %edx |
addl %eax,%ebx |
movl (%esi),%eax |
adcl %edx,%ecx |
movl 12(%edi),%edx |
adcl $0,%ebp |
- |
+ # mul a[0]*b[3] |
mull %edx |
addl %eax,%ebx |
movl 20(%esp),%eax |
@@ -1509,24 +646,24 @@ bn_mul_comba4: |
adcl $0,%ebp |
movl %ebx,12(%eax) |
movl 12(%esi),%eax |
- |
- |
+ # saved r[3] |
+ # ################## Calculate word 4 |
xorl %ebx,%ebx |
- |
+ # mul a[3]*b[1] |
mull %edx |
addl %eax,%ecx |
movl 8(%esi),%eax |
adcl %edx,%ebp |
movl 8(%edi),%edx |
adcl $0,%ebx |
- |
+ # mul a[2]*b[2] |
mull %edx |
addl %eax,%ecx |
movl 4(%esi),%eax |
adcl %edx,%ebp |
movl 12(%edi),%edx |
adcl $0,%ebx |
- |
+ # mul a[1]*b[3] |
mull %edx |
addl %eax,%ecx |
movl 20(%esp),%eax |
@@ -1535,17 +672,17 @@ bn_mul_comba4: |
adcl $0,%ebx |
movl %ecx,16(%eax) |
movl 12(%esi),%eax |
- |
- |
+ # saved r[4] |
+ # ################## Calculate word 5 |
xorl %ecx,%ecx |
- |
+ # mul a[3]*b[2] |
mull %edx |
addl %eax,%ebp |
movl 8(%esi),%eax |
adcl %edx,%ebx |
movl 12(%edi),%edx |
adcl $0,%ecx |
- |
+ # mul a[2]*b[3] |
mull %edx |
addl %eax,%ebp |
movl 20(%esp),%eax |
@@ -1554,30 +691,28 @@ bn_mul_comba4: |
adcl $0,%ecx |
movl %ebp,20(%eax) |
movl 12(%esi),%eax |
- |
- |
+ # saved r[5] |
+ # ################## Calculate word 6 |
xorl %ebp,%ebp |
- |
+ # mul a[3]*b[3] |
mull %edx |
addl %eax,%ebx |
movl 20(%esp),%eax |
adcl %edx,%ecx |
adcl $0,%ebp |
movl %ebx,24(%eax) |
- |
- |
+ # saved r[6] |
+ # save r[7] |
movl %ecx,28(%eax) |
popl %ebx |
popl %ebp |
popl %edi |
popl %esi |
ret |
-.size bn_mul_comba4,.-.L_bn_mul_comba4_begin |
-.globl bn_sqr_comba8 |
-.type bn_sqr_comba8,@function |
-.align 16 |
-bn_sqr_comba8: |
-.L_bn_sqr_comba8_begin: |
+.globl _bn_sqr_comba8 |
+.align 4 |
+_bn_sqr_comba8: |
+L_bn_sqr_comba8_begin: |
pushl %esi |
pushl %edi |
pushl %ebp |
@@ -1587,9 +722,9 @@ bn_sqr_comba8: |
xorl %ebx,%ebx |
xorl %ecx,%ecx |
movl (%esi),%eax |
- |
+ # ############### Calculate word 0 |
xorl %ebp,%ebp |
- |
+ # sqr a[0]*a[0] |
mull %eax |
addl %eax,%ebx |
adcl %edx,%ecx |
@@ -1597,10 +732,10 @@ bn_sqr_comba8: |
adcl $0,%ebp |
movl %ebx,(%edi) |
movl 4(%esi),%eax |
- |
- |
+ # saved r[0] |
+ # ############### Calculate word 1 |
xorl %ebx,%ebx |
- |
+ # sqr a[1]*a[0] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1611,10 +746,10 @@ bn_sqr_comba8: |
adcl $0,%ebx |
movl %ecx,4(%edi) |
movl (%esi),%edx |
- |
- |
+ # saved r[1] |
+ # ############### Calculate word 2 |
xorl %ecx,%ecx |
- |
+ # sqr a[2]*a[0] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1623,7 +758,7 @@ bn_sqr_comba8: |
adcl %edx,%ebx |
movl 4(%esi),%eax |
adcl $0,%ecx |
- |
+ # sqr a[1]*a[1] |
mull %eax |
addl %eax,%ebp |
adcl %edx,%ebx |
@@ -1631,10 +766,10 @@ bn_sqr_comba8: |
adcl $0,%ecx |
movl %ebp,8(%edi) |
movl 12(%esi),%eax |
- |
- |
+ # saved r[2] |
+ # ############### Calculate word 3 |
xorl %ebp,%ebp |
- |
+ # sqr a[3]*a[0] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1644,7 +779,7 @@ bn_sqr_comba8: |
movl 8(%esi),%eax |
adcl $0,%ebp |
movl 4(%esi),%edx |
- |
+ # sqr a[2]*a[1] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1655,10 +790,10 @@ bn_sqr_comba8: |
adcl $0,%ebp |
movl %ebx,12(%edi) |
movl (%esi),%edx |
- |
- |
+ # saved r[3] |
+ # ############### Calculate word 4 |
xorl %ebx,%ebx |
- |
+ # sqr a[4]*a[0] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1668,7 +803,7 @@ bn_sqr_comba8: |
movl 12(%esi),%eax |
adcl $0,%ebx |
movl 4(%esi),%edx |
- |
+ # sqr a[3]*a[1] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1677,7 +812,7 @@ bn_sqr_comba8: |
adcl %edx,%ebp |
movl 8(%esi),%eax |
adcl $0,%ebx |
- |
+ # sqr a[2]*a[2] |
mull %eax |
addl %eax,%ecx |
adcl %edx,%ebp |
@@ -1685,10 +820,10 @@ bn_sqr_comba8: |
adcl $0,%ebx |
movl %ecx,16(%edi) |
movl 20(%esi),%eax |
- |
- |
+ # saved r[4] |
+ # ############### Calculate word 5 |
xorl %ecx,%ecx |
- |
+ # sqr a[5]*a[0] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1698,7 +833,7 @@ bn_sqr_comba8: |
movl 16(%esi),%eax |
adcl $0,%ecx |
movl 4(%esi),%edx |
- |
+ # sqr a[4]*a[1] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1708,7 +843,7 @@ bn_sqr_comba8: |
movl 12(%esi),%eax |
adcl $0,%ecx |
movl 8(%esi),%edx |
- |
+ # sqr a[3]*a[2] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1719,10 +854,10 @@ bn_sqr_comba8: |
adcl $0,%ecx |
movl %ebp,20(%edi) |
movl (%esi),%edx |
- |
- |
+ # saved r[5] |
+ # ############### Calculate word 6 |
xorl %ebp,%ebp |
- |
+ # sqr a[6]*a[0] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1732,7 +867,7 @@ bn_sqr_comba8: |
movl 20(%esi),%eax |
adcl $0,%ebp |
movl 4(%esi),%edx |
- |
+ # sqr a[5]*a[1] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1742,7 +877,7 @@ bn_sqr_comba8: |
movl 16(%esi),%eax |
adcl $0,%ebp |
movl 8(%esi),%edx |
- |
+ # sqr a[4]*a[2] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1751,7 +886,7 @@ bn_sqr_comba8: |
adcl %edx,%ecx |
movl 12(%esi),%eax |
adcl $0,%ebp |
- |
+ # sqr a[3]*a[3] |
mull %eax |
addl %eax,%ebx |
adcl %edx,%ecx |
@@ -1759,10 +894,10 @@ bn_sqr_comba8: |
adcl $0,%ebp |
movl %ebx,24(%edi) |
movl 28(%esi),%eax |
- |
- |
+ # saved r[6] |
+ # ############### Calculate word 7 |
xorl %ebx,%ebx |
- |
+ # sqr a[7]*a[0] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1772,7 +907,7 @@ bn_sqr_comba8: |
movl 24(%esi),%eax |
adcl $0,%ebx |
movl 4(%esi),%edx |
- |
+ # sqr a[6]*a[1] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1782,7 +917,7 @@ bn_sqr_comba8: |
movl 20(%esi),%eax |
adcl $0,%ebx |
movl 8(%esi),%edx |
- |
+ # sqr a[5]*a[2] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1792,7 +927,7 @@ bn_sqr_comba8: |
movl 16(%esi),%eax |
adcl $0,%ebx |
movl 12(%esi),%edx |
- |
+ # sqr a[4]*a[3] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1803,10 +938,10 @@ bn_sqr_comba8: |
adcl $0,%ebx |
movl %ecx,28(%edi) |
movl 4(%esi),%edx |
- |
- |
+ # saved r[7] |
+ # ############### Calculate word 8 |
xorl %ecx,%ecx |
- |
+ # sqr a[7]*a[1] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1816,7 +951,7 @@ bn_sqr_comba8: |
movl 24(%esi),%eax |
adcl $0,%ecx |
movl 8(%esi),%edx |
- |
+ # sqr a[6]*a[2] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1826,7 +961,7 @@ bn_sqr_comba8: |
movl 20(%esi),%eax |
adcl $0,%ecx |
movl 12(%esi),%edx |
- |
+ # sqr a[5]*a[3] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1835,7 +970,7 @@ bn_sqr_comba8: |
adcl %edx,%ebx |
movl 16(%esi),%eax |
adcl $0,%ecx |
- |
+ # sqr a[4]*a[4] |
mull %eax |
addl %eax,%ebp |
adcl %edx,%ebx |
@@ -1843,10 +978,10 @@ bn_sqr_comba8: |
adcl $0,%ecx |
movl %ebp,32(%edi) |
movl 28(%esi),%eax |
- |
- |
+ # saved r[8] |
+ # ############### Calculate word 9 |
xorl %ebp,%ebp |
- |
+ # sqr a[7]*a[2] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1856,7 +991,7 @@ bn_sqr_comba8: |
movl 24(%esi),%eax |
adcl $0,%ebp |
movl 12(%esi),%edx |
- |
+ # sqr a[6]*a[3] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1866,7 +1001,7 @@ bn_sqr_comba8: |
movl 20(%esi),%eax |
adcl $0,%ebp |
movl 16(%esi),%edx |
- |
+ # sqr a[5]*a[4] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1877,10 +1012,10 @@ bn_sqr_comba8: |
adcl $0,%ebp |
movl %ebx,36(%edi) |
movl 12(%esi),%edx |
- |
- |
+ # saved r[9] |
+ # ############### Calculate word 10 |
xorl %ebx,%ebx |
- |
+ # sqr a[7]*a[3] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1890,7 +1025,7 @@ bn_sqr_comba8: |
movl 24(%esi),%eax |
adcl $0,%ebx |
movl 16(%esi),%edx |
- |
+ # sqr a[6]*a[4] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1899,7 +1034,7 @@ bn_sqr_comba8: |
adcl %edx,%ebp |
movl 20(%esi),%eax |
adcl $0,%ebx |
- |
+ # sqr a[5]*a[5] |
mull %eax |
addl %eax,%ecx |
adcl %edx,%ebp |
@@ -1907,10 +1042,10 @@ bn_sqr_comba8: |
adcl $0,%ebx |
movl %ecx,40(%edi) |
movl 28(%esi),%eax |
- |
- |
+ # saved r[10] |
+ # ############### Calculate word 11 |
xorl %ecx,%ecx |
- |
+ # sqr a[7]*a[4] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1920,7 +1055,7 @@ bn_sqr_comba8: |
movl 24(%esi),%eax |
adcl $0,%ecx |
movl 20(%esi),%edx |
- |
+ # sqr a[6]*a[5] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1931,10 +1066,10 @@ bn_sqr_comba8: |
adcl $0,%ecx |
movl %ebp,44(%edi) |
movl 20(%esi),%edx |
- |
- |
+ # saved r[11] |
+ # ############### Calculate word 12 |
xorl %ebp,%ebp |
- |
+ # sqr a[7]*a[5] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1943,7 +1078,7 @@ bn_sqr_comba8: |
adcl %edx,%ecx |
movl 24(%esi),%eax |
adcl $0,%ebp |
- |
+ # sqr a[6]*a[6] |
mull %eax |
addl %eax,%ebx |
adcl %edx,%ecx |
@@ -1951,10 +1086,10 @@ bn_sqr_comba8: |
adcl $0,%ebp |
movl %ebx,48(%edi) |
movl 28(%esi),%eax |
- |
- |
+ # saved r[12] |
+ # ############### Calculate word 13 |
xorl %ebx,%ebx |
- |
+ # sqr a[7]*a[6] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -1964,28 +1099,26 @@ bn_sqr_comba8: |
movl 28(%esi),%eax |
adcl $0,%ebx |
movl %ecx,52(%edi) |
- |
- |
+ # saved r[13] |
+ # ############### Calculate word 14 |
xorl %ecx,%ecx |
- |
+ # sqr a[7]*a[7] |
mull %eax |
addl %eax,%ebp |
adcl %edx,%ebx |
adcl $0,%ecx |
movl %ebp,56(%edi) |
- |
+ # saved r[14] |
movl %ebx,60(%edi) |
popl %ebx |
popl %ebp |
popl %edi |
popl %esi |
ret |
-.size bn_sqr_comba8,.-.L_bn_sqr_comba8_begin |
-.globl bn_sqr_comba4 |
-.type bn_sqr_comba4,@function |
-.align 16 |
-bn_sqr_comba4: |
-.L_bn_sqr_comba4_begin: |
+.globl _bn_sqr_comba4 |
+.align 4 |
+_bn_sqr_comba4: |
+L_bn_sqr_comba4_begin: |
pushl %esi |
pushl %edi |
pushl %ebp |
@@ -1995,9 +1128,9 @@ bn_sqr_comba4: |
xorl %ebx,%ebx |
xorl %ecx,%ecx |
movl (%esi),%eax |
- |
+ # ############### Calculate word 0 |
xorl %ebp,%ebp |
- |
+ # sqr a[0]*a[0] |
mull %eax |
addl %eax,%ebx |
adcl %edx,%ecx |
@@ -2005,10 +1138,10 @@ bn_sqr_comba4: |
adcl $0,%ebp |
movl %ebx,(%edi) |
movl 4(%esi),%eax |
- |
- |
+ # saved r[0] |
+ # ############### Calculate word 1 |
xorl %ebx,%ebx |
- |
+ # sqr a[1]*a[0] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -2019,10 +1152,10 @@ bn_sqr_comba4: |
adcl $0,%ebx |
movl %ecx,4(%edi) |
movl (%esi),%edx |
- |
- |
+ # saved r[1] |
+ # ############### Calculate word 2 |
xorl %ecx,%ecx |
- |
+ # sqr a[2]*a[0] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -2031,7 +1164,7 @@ bn_sqr_comba4: |
adcl %edx,%ebx |
movl 4(%esi),%eax |
adcl $0,%ecx |
- |
+ # sqr a[1]*a[1] |
mull %eax |
addl %eax,%ebp |
adcl %edx,%ebx |
@@ -2039,10 +1172,10 @@ bn_sqr_comba4: |
adcl $0,%ecx |
movl %ebp,8(%edi) |
movl 12(%esi),%eax |
- |
- |
+ # saved r[2] |
+ # ############### Calculate word 3 |
xorl %ebp,%ebp |
- |
+ # sqr a[3]*a[0] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -2052,7 +1185,7 @@ bn_sqr_comba4: |
movl 8(%esi),%eax |
adcl $0,%ebp |
movl 4(%esi),%edx |
- |
+ # sqr a[2]*a[1] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -2063,10 +1196,10 @@ bn_sqr_comba4: |
adcl $0,%ebp |
movl %ebx,12(%edi) |
movl 4(%esi),%edx |
- |
- |
+ # saved r[3] |
+ # ############### Calculate word 4 |
xorl %ebx,%ebx |
- |
+ # sqr a[3]*a[1] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -2075,7 +1208,7 @@ bn_sqr_comba4: |
adcl %edx,%ebp |
movl 8(%esi),%eax |
adcl $0,%ebx |
- |
+ # sqr a[2]*a[2] |
mull %eax |
addl %eax,%ecx |
adcl %edx,%ebp |
@@ -2083,10 +1216,10 @@ bn_sqr_comba4: |
adcl $0,%ebx |
movl %ecx,16(%edi) |
movl 12(%esi),%eax |
- |
- |
+ # saved r[4] |
+ # ############### Calculate word 5 |
xorl %ecx,%ecx |
- |
+ # sqr a[3]*a[2] |
mull %edx |
addl %eax,%eax |
adcl %edx,%edx |
@@ -2096,21 +1229,20 @@ bn_sqr_comba4: |
movl 12(%esi),%eax |
adcl $0,%ecx |
movl %ebp,20(%edi) |
- |
- |
+ # saved r[5] |
+ # ############### Calculate word 6 |
xorl %ebp,%ebp |
- |
+ # sqr a[3]*a[3] |
mull %eax |
addl %eax,%ebx |
adcl %edx,%ecx |
adcl $0,%ebp |
movl %ebx,24(%edi) |
- |
+ # saved r[6] |
movl %ecx,28(%edi) |
popl %ebx |
popl %ebp |
popl %edi |
popl %esi |
ret |
-.size bn_sqr_comba4,.-.L_bn_sqr_comba4_begin |
#endif |