From fcedfddf00b3f994e4f4e40332ac7fc192c63244 Mon Sep 17 00:00:00 2001 From: polwex Date: Sun, 5 Oct 2025 21:56:51 +0700 Subject: claude is gud --- vere/ext/gmp/gen/x86_64-windows/mpn/copyd.s | 111 ++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 vere/ext/gmp/gen/x86_64-windows/mpn/copyd.s (limited to 'vere/ext/gmp/gen/x86_64-windows/mpn/copyd.s') diff --git a/vere/ext/gmp/gen/x86_64-windows/mpn/copyd.s b/vere/ext/gmp/gen/x86_64-windows/mpn/copyd.s new file mode 100644 index 0000000..43c6257 --- /dev/null +++ b/vere/ext/gmp/gen/x86_64-windows/mpn/copyd.s @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + .text + .align 64, 0x90 + .globl __gmpn_copyd + + .def __gmpn_copyd + .scl 2 + .type 32 + .endef +__gmpn_copyd: + + lea -8(%rdx,%r8,8), %rdx + lea (%rcx,%r8,8), %rcx + sub $4, %r8 + jc Lend + nop + +Ltop: mov (%rdx), %rax + mov -8(%rdx), %r9 + lea -32(%rcx), %rcx + mov -16(%rdx), %r10 + mov -24(%rdx), %r11 + lea -32(%rdx), %rdx + mov %rax, 24(%rcx) + mov %r9, 16(%rcx) + sub $4, %r8 + mov %r10, 8(%rcx) + mov %r11, (%rcx) + jnc Ltop + +Lend: shr %r8d + jnc 1f + mov (%rdx), %rax + mov %rax, -8(%rcx) + lea -8(%rcx), %rcx + lea -8(%rdx), %rdx +1: shr %r8d + jnc 1f + mov (%rdx), %rax + mov -8(%rdx), %r9 + mov %rax, -8(%rcx) + mov %r9, -16(%rcx) +1: ret + -- cgit v1.2.3