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/aarch64-macos/mpn/gcd_11.s | 80 +++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 vere/ext/gmp/gen/aarch64-macos/mpn/gcd_11.s (limited to 'vere/ext/gmp/gen/aarch64-macos/mpn/gcd_11.s') diff --git a/vere/ext/gmp/gen/aarch64-macos/mpn/gcd_11.s b/vere/ext/gmp/gen/aarch64-macos/mpn/gcd_11.s new file mode 100644 index 0000000..a318b2b --- /dev/null +++ b/vere/ext/gmp/gen/aarch64-macos/mpn/gcd_11.s @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + .text + .align 4 + .text + .align 3 + .globl ___gmpn_gcd_11 + +___gmpn_gcd_11: + subs x3, x0, x1 + b.eq Lend + + .align 4 +Ltop: rbit x12, x3 + clz x12, x12 + csneg x3, x3, x3, cs + csel x0, x1, x0, cs + lsr x1, x3, x12 + subs x3, x0, x1 + b.ne Ltop + +Lend: ret + -- cgit v1.2.3