mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-29 20:27:12 +01:00
Fixed bug 2537 - _allmul in SDL_lib.c is not working properly
This commit is contained in:
parent
5c6c86912d
commit
a0b68e817d
@ -377,34 +377,25 @@ _allmul()
|
|||||||
{
|
{
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
__asm {
|
__asm {
|
||||||
push ebp
|
mov eax, dword ptr[esp+8]
|
||||||
mov ebp,esp
|
mov ecx, dword ptr[esp+10h]
|
||||||
push edi
|
or ecx, eax
|
||||||
push esi
|
mov ecx, dword ptr[esp+0Ch]
|
||||||
|
jne hard
|
||||||
|
mov eax, dword ptr[esp+4]
|
||||||
|
mul ecx
|
||||||
|
ret 10h
|
||||||
|
hard:
|
||||||
push ebx
|
push ebx
|
||||||
sub esp,0Ch
|
mul ecx
|
||||||
mov eax,dword ptr [ebp+10h]
|
mov ebx, eax
|
||||||
mov edi,dword ptr [ebp+8]
|
mov eax, dword ptr[esp+8]
|
||||||
mov ebx,eax
|
mul dword ptr[esp+14h]
|
||||||
mov esi,eax
|
add ebx, eax
|
||||||
sar esi,1Fh
|
mov eax, dword ptr[esp+8]
|
||||||
mov eax,dword ptr [ebp+8]
|
mul ecx
|
||||||
mul ebx
|
add edx, ebx
|
||||||
imul edi,esi
|
|
||||||
mov ecx,edx
|
|
||||||
mov dword ptr [ebp-18h],eax
|
|
||||||
mov edx,dword ptr [ebp+0Ch]
|
|
||||||
add ecx,edi
|
|
||||||
imul ebx,edx
|
|
||||||
mov eax,dword ptr [ebp-18h]
|
|
||||||
lea ebx,[ebx+ecx]
|
|
||||||
mov dword ptr [ebp-14h],ebx
|
|
||||||
mov edx,dword ptr [ebp-14h]
|
|
||||||
add esp,0Ch
|
|
||||||
pop ebx
|
pop ebx
|
||||||
pop esi
|
|
||||||
pop edi
|
|
||||||
pop ebp
|
|
||||||
ret 10h
|
ret 10h
|
||||||
}
|
}
|
||||||
/* *INDENT-ON* */
|
/* *INDENT-ON* */
|
||||||
|
Loading…
Reference in New Issue
Block a user