mirror of
https://github.com/limine-bootloader/limine
synced 2024-11-30 04:13:13 +03:00
libgcc: Small __*divmoddi4 bug fix
This commit is contained in:
parent
5b3dab3036
commit
63c3f48f49
@ -40,8 +40,11 @@ __udivmoddi4:
|
|||||||
mov edx, dword [esp+8]
|
mov edx, dword [esp+8]
|
||||||
div dword [esp+12]
|
div dword [esp+12]
|
||||||
mov ecx, dword [esp+20]
|
mov ecx, dword [esp+20]
|
||||||
|
test ecx, ecx
|
||||||
|
jz .done
|
||||||
mov dword [ecx], edx
|
mov dword [ecx], edx
|
||||||
mov dword [ecx+4], 0
|
mov dword [ecx+4], 0
|
||||||
|
.done:
|
||||||
xor edx, edx
|
xor edx, edx
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -51,7 +54,10 @@ __divmoddi4:
|
|||||||
mov edx, dword [esp+8]
|
mov edx, dword [esp+8]
|
||||||
idiv dword [esp+12]
|
idiv dword [esp+12]
|
||||||
mov ecx, dword [esp+20]
|
mov ecx, dword [esp+20]
|
||||||
|
test ecx, ecx
|
||||||
|
jz .done
|
||||||
mov dword [ecx], edx
|
mov dword [ecx], edx
|
||||||
mov dword [ecx+4], 0
|
mov dword [ecx+4], 0
|
||||||
|
.done:
|
||||||
xor edx, edx
|
xor edx, edx
|
||||||
ret
|
ret
|
||||||
|
Loading…
Reference in New Issue
Block a user