TCP_input: dont use conditional move instruction. (not available on some machines)

git-svn-id: svn://kolibrios.org@4296 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2013-11-26 17:00:13 +00:00
parent 31ad68350f
commit 5842e9f374

View File

@ -882,7 +882,9 @@ TCP_process_input:
mov eax, [ebx + TCP_SOCKET.SND_WND] mov eax, [ebx + TCP_SOCKET.SND_WND]
cmp eax, [ebx + TCP_SOCKET.SND_CWND] cmp eax, [ebx + TCP_SOCKET.SND_CWND]
cmova eax, [ebx + TCP_SOCKET.SND_CWND] jbe @f
mov eax, [ebx + TCP_SOCKET.SND_CWND]
@@:
shr eax, 1 shr eax, 1
push edx push edx
xor edx, edx xor edx, edx
@ -1067,7 +1069,9 @@ TCP_process_input:
pop ecx pop ecx
cmp esi, eax cmp esi, eax
cmova esi, eax jbe @f
mov esi, eax
@@:
mov [ebx + TCP_SOCKET.SND_CWND], esi mov [ebx + TCP_SOCKET.SND_CWND], esi
;------------------------------------------ ;------------------------------------------