FSPEED - fix overflow of multiplying.
git-svn-id: svn://kolibrios.org@4837 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
4d8e87e0a7
commit
1c4e6a64d3
@ -228,8 +228,11 @@ read_chunk:
|
|||||||
;--------------------------------------
|
;--------------------------------------
|
||||||
.end:
|
.end:
|
||||||
mov eax,[ebp+8]
|
mov eax,[ebp+8]
|
||||||
|
xor edx,edx
|
||||||
imul eax,ecx
|
imul eax,ecx
|
||||||
shr eax,10+4
|
shr eax,10+4 ;div 1024 ; div 16
|
||||||
|
shl edx,18
|
||||||
|
add eax,edx
|
||||||
mov [ebp+4],eax ; speed KB/s
|
mov [ebp+4],eax ; speed KB/s
|
||||||
DEBUGF 1,'FSPEED: chunk size: %s iterations: %d speed: %d KB/s\n',[ebp],ecx,eax
|
DEBUGF 1,'FSPEED: chunk size: %s iterations: %d speed: %d KB/s\n',[ebp],ecx,eax
|
||||||
mcall 68,13,[fileread.return]
|
mcall 68,13,[fileread.return]
|
||||||
|
Loading…
Reference in New Issue
Block a user