diff options
author | polwex <polwex@sortug.com> | 2025-10-05 21:56:51 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-10-05 21:56:51 +0700 |
commit | fcedfddf00b3f994e4f4e40332ac7fc192c63244 (patch) | |
tree | 51d38e62c7bdfcc5f9a5e9435fe820c93cfc9a3d /vere/ext/gmp/gen/x86_64-windows/mpn/nior_n.s |
claude is gud
Diffstat (limited to 'vere/ext/gmp/gen/x86_64-windows/mpn/nior_n.s')
-rw-r--r-- | vere/ext/gmp/gen/x86_64-windows/mpn/nior_n.s | 165 |
1 files changed, 165 insertions, 0 deletions
diff --git a/vere/ext/gmp/gen/x86_64-windows/mpn/nior_n.s b/vere/ext/gmp/gen/x86_64-windows/mpn/nior_n.s new file mode 100644 index 0000000..25ccc4f --- /dev/null +++ b/vere/ext/gmp/gen/x86_64-windows/mpn/nior_n.s @@ -0,0 +1,165 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + .text + .align 32, 0x90 + .globl __gmpn_nior_n + + .def __gmpn_nior_n + .scl 2 + .type 32 + .endef +__gmpn_nior_n: + + push %rdi + push %rsi + mov %rcx, %rdi + mov %rdx, %rsi + mov %r8, %rdx + mov %r9, %rcx + + mov (%rdx), %r8 + mov %ecx, %eax + lea (%rdx,%rcx,8), %rdx + lea (%rsi,%rcx,8), %rsi + lea (%rdi,%rcx,8), %rdi + neg %rcx + and $3, %eax + je Lb00 + cmp $2, %eax + jc Lb01 + je Lb10 + +Lb11: or (%rsi,%rcx,8), %r8 + not %r8 + mov %r8, (%rdi,%rcx,8) + dec %rcx + jmp Le11 +Lb10: add $-2, %rcx + jmp Le10 + .byte 0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90 +Lb01: or (%rsi,%rcx,8), %r8 + not %r8 + mov %r8, (%rdi,%rcx,8) + inc %rcx + jz Lret + +Ltop: mov (%rdx,%rcx,8), %r8 +Lb00: mov 8(%rdx,%rcx,8), %r9 + or (%rsi,%rcx,8), %r8 + not %r8 + or 8(%rsi,%rcx,8), %r9 + not %r9 + mov %r8, (%rdi,%rcx,8) + mov %r9, 8(%rdi,%rcx,8) +Le11: mov 16(%rdx,%rcx,8), %r8 +Le10: mov 24(%rdx,%rcx,8), %r9 + or 16(%rsi,%rcx,8), %r8 + not %r8 + or 24(%rsi,%rcx,8), %r9 + not %r9 + mov %r8, 16(%rdi,%rcx,8) + mov %r9, 24(%rdi,%rcx,8) + add $4, %rcx + jnc Ltop + +Lret: pop %rsi + pop %rdi + ret + + |