libgcc: Fix __udivmoddi4 and __divmoddi4

This commit is contained in:
mintsuki 2021-04-03 15:26:58 +02:00
parent fc61ae76a0
commit 12aceadc76
1 changed files with 2 additions and 0 deletions

View File

@ -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