summaryrefslogtreecommitdiff
path: root/vere/ext/gmp/gen/x86_64-linux/mpn/copyd.s
diff options
context:
space:
mode:
Diffstat (limited to 'vere/ext/gmp/gen/x86_64-linux/mpn/copyd.s')
-rw-r--r--vere/ext/gmp/gen/x86_64-linux/mpn/copyd.s108
1 files changed, 108 insertions, 0 deletions
diff --git a/vere/ext/gmp/gen/x86_64-linux/mpn/copyd.s b/vere/ext/gmp/gen/x86_64-linux/mpn/copyd.s
new file mode 100644
index 0000000..f375481
--- /dev/null
+++ b/vere/ext/gmp/gen/x86_64-linux/mpn/copyd.s
@@ -0,0 +1,108 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ .text
+ .align 64, 0x90
+ .globl __gmpn_copyd
+ .type __gmpn_copyd,@function
+
+__gmpn_copyd:
+
+ lea -8(%rsi,%rdx,8), %rsi
+ lea (%rdi,%rdx,8), %rdi
+ sub $4, %rdx
+ jc .Lend
+ nop
+
+.Ltop: mov (%rsi), %rax
+ mov -8(%rsi), %r9
+ lea -32(%rdi), %rdi
+ mov -16(%rsi), %r10
+ mov -24(%rsi), %r11
+ lea -32(%rsi), %rsi
+ mov %rax, 24(%rdi)
+ mov %r9, 16(%rdi)
+ sub $4, %rdx
+ mov %r10, 8(%rdi)
+ mov %r11, (%rdi)
+ jnc .Ltop
+
+.Lend: shr %edx
+ jnc 1f
+ mov (%rsi), %rax
+ mov %rax, -8(%rdi)
+ lea -8(%rdi), %rdi
+ lea -8(%rsi), %rsi
+1: shr %edx
+ jnc 1f
+ mov (%rsi), %rax
+ mov -8(%rsi), %r9
+ mov %rax, -8(%rdi)
+ mov %r9, -16(%rdi)
+1: ret
+ .size __gmpn_copyd,.-__gmpn_copyd