repo.or.cz
/
nyanglibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
clarify the purpose of this project
[nyanglibc.git]
/
stdlib
/
divmod_1.s
blob
777787a2a9be70c60b63f23714a6744e29334523
1
.text
2
.p2align 4,,15
3
.globl __mpn_divmod_1
4
.type __mpn_divmod_1, @function
5
__mpn_divmod_1
:
6
movq
%
rdx
, %
rax
7
xorl
%
edx
, %
edx
8
testq
%
rax
, %
rax
9
je
.L1
10
leaq
-
1
(%
rax
), %
r8
11
movq
(%
rsi
,%
r8
,
8
), %
rdx
12
cmpq
%
rcx
, %
rdx
13
jnb
.L6
14
movq $
0
, (%
rdi
,%
r8
,
8
)
15
leaq
-
2
(%
rax
), %
r8
16
.L3:
17
testq
%
r8
, %
r8
18
js
.L1
19
leaq
(%
rdi
,%
r8
,
8
), %
rdi
20
.p2align 4,,10
21
.p2align 3
22
.L4:
23
movq
(%
rsi
,%
r8
,
8
), %
rax
24
subq $
1
, %
r8
25
subq $
8
, %
rdi
26
#APP
27
# 195 "divmod_1.c" 1
28
divq
%
rcx
29
# 0 "" 2
30
#NO_APP
31
movq
%
rax
,
8
(%
rdi
)
32
cmpq $
-
1
, %
r8
33
jne
.L4
34
.L1:
35
movq
%
rdx
, %
rax
36
ret
37
.p2align 4,,10
38
.p2align 3
39
.L6:
40
xorl
%
edx
, %
edx
41
jmp
.L3
42
.size __mpn_divmod_1, .-__mpn_divmod_1