summaryrefslogtreecommitdiff
path: root/vere/ext/gmp/gen/aarch64-linux/mpn/gcd_11.s
blob: 1c3b84f82352dce2c7774aa3a6fe99a3677e1807 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
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