forked from KolibriOS/kolibrios
small optimization
git-svn-id: svn://kolibrios.org@254 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -214,8 +214,7 @@ found:
|
||||
btr [ebx], eax
|
||||
mov [mem_block_start],ebx
|
||||
sub ebx, mem_block_map
|
||||
shl ebx, 3
|
||||
add eax,ebx
|
||||
lea eax,[eax+ebx*8]
|
||||
shl eax, 5
|
||||
add eax, [mem_block_arr]
|
||||
dec [free_blocks]
|
||||
|
@@ -172,8 +172,7 @@ proc alloc_page
|
||||
btr [ebx], eax
|
||||
mov [page_start],ebx
|
||||
sub ebx, sys_pgmap
|
||||
shl ebx, 3
|
||||
add eax,ebx
|
||||
lea eax, [eax+ebx*8]
|
||||
shl eax, 12
|
||||
dec [pg_data.pages_free]
|
||||
popfd
|
||||
|
Reference in New Issue
Block a user