libgcc: Fix __udivmoddi4 and __divmoddi4
This commit is contained in:
parent
fc61ae76a0
commit
12aceadc76
|
@ -41,6 +41,7 @@ __udivmoddi4:
|
||||||
div dword [esp+12]
|
div dword [esp+12]
|
||||||
mov ecx, dword [esp+20]
|
mov ecx, dword [esp+20]
|
||||||
mov dword [ecx], edx
|
mov dword [ecx], edx
|
||||||
|
mov dword [ecx+4], 0
|
||||||
xor edx, edx
|
xor edx, edx
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
@ -51,5 +52,6 @@ __divmoddi4:
|
||||||
idiv dword [esp+12]
|
idiv dword [esp+12]
|
||||||
mov ecx, dword [esp+20]
|
mov ecx, dword [esp+20]
|
||||||
mov dword [ecx], edx
|
mov dword [ecx], edx
|
||||||
|
mov dword [ecx+4], 0
|
||||||
xor edx, edx
|
xor edx, edx
|
||||||
ret
|
ret
|
||||||
|
|
Loading…
Reference in New Issue