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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
.text
.align 32, 0x90
.globl __gmpn_com
.type __gmpn_com,@function
__gmpn_com:
movq (%rsi), %r8
movl %edx, %eax
leaq (%rsi,%rdx,8), %rsi
leaq (%rdi,%rdx,8), %rdi
negq %rdx
andl $3, %eax
je .Lb00
cmpl $2, %eax
jc .Lb01
je .Lb10
.Lb11: notq %r8
movq %r8, (%rdi,%rdx,8)
decq %rdx
jmp .Le11
.Lb10: addq $-2, %rdx
jmp .Le10
.byte 0x90,0x90,0x90,0x90,0x90,0x90
.Lb01: notq %r8
movq %r8, (%rdi,%rdx,8)
incq %rdx
jz .Lret
.Loop: movq (%rsi,%rdx,8), %r8
.Lb00: movq 8(%rsi,%rdx,8), %r9
notq %r8
notq %r9
movq %r8, (%rdi,%rdx,8)
movq %r9, 8(%rdi,%rdx,8)
.Le11: movq 16(%rsi,%rdx,8), %r8
.Le10: movq 24(%rsi,%rdx,8), %r9
notq %r8
notq %r9
movq %r8, 16(%rdi,%rdx,8)
movq %r9, 24(%rdi,%rdx,8)
addq $4, %rdx
jnc .Loop
.Lret:
ret
.size __gmpn_com,.-__gmpn_com
|