mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-24 23:56:49 +03:00
small speedup
git-svn-id: svn://kolibrios.org@6423 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
9f4a226cc1
commit
97bb3982a6
@ -394,21 +394,15 @@ proc mpint_sub uses eax esi edi ecx, dst, src
|
||||
mov edi, [dst]
|
||||
add edi, 4
|
||||
mov ecx, MPINT_MAX_LEN/4
|
||||
|
||||
; dst = dst + (NOT src) + 1
|
||||
stc ; Setting CF takes care of the +1
|
||||
pushf
|
||||
@@:
|
||||
.loop:
|
||||
lodsd
|
||||
not eax
|
||||
popf
|
||||
adc [edi], eax
|
||||
pushf
|
||||
sub [edi], eax
|
||||
jnc @f
|
||||
dec dword [edi+4]
|
||||
@@:
|
||||
add edi, 4
|
||||
dec ecx
|
||||
jnz @r
|
||||
popf
|
||||
|
||||
jnz .loop
|
||||
ret
|
||||
|
||||
endp
|
||||
|
Loading…
Reference in New Issue
Block a user