diff options
| author | polwex <polwex@sortug.com> | 2025-10-06 01:01:41 +0700 |
|---|---|---|
| committer | polwex <polwex@sortug.com> | 2025-10-06 01:01:41 +0700 |
| commit | c4b392a179048f936c062f5ffccc2bc25627e500 (patch) | |
| tree | 09be0904be8ec4d7ea52992ef7580d42ed0c28c1 /vere/ext/gmp/gen/aarch64-linux/mpn/gcd_11.s | |
working
Diffstat (limited to 'vere/ext/gmp/gen/aarch64-linux/mpn/gcd_11.s')
| -rw-r--r-- | vere/ext/gmp/gen/aarch64-linux/mpn/gcd_11.s | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/vere/ext/gmp/gen/aarch64-linux/mpn/gcd_11.s b/vere/ext/gmp/gen/aarch64-linux/mpn/gcd_11.s new file mode 100644 index 0000000..1c3b84f --- /dev/null +++ b/vere/ext/gmp/gen/aarch64-linux/mpn/gcd_11.s @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + .text + .align 4 + .text + .align 3 + .globl __gmpn_gcd_11 + .type __gmpn_gcd_11,@function +__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 + .size __gmpn_gcd_11,.-__gmpn_gcd_11 |
