forked from KolibriOS/kolibrios
small optimization
git-svn-id: svn://kolibrios.org@254 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
d40f7261aa
commit
f5b902bbee
@ -214,8 +214,7 @@ found:
|
|||||||
btr [ebx], eax
|
btr [ebx], eax
|
||||||
mov [mem_block_start],ebx
|
mov [mem_block_start],ebx
|
||||||
sub ebx, mem_block_map
|
sub ebx, mem_block_map
|
||||||
shl ebx, 3
|
lea eax,[eax+ebx*8]
|
||||||
add eax,ebx
|
|
||||||
shl eax, 5
|
shl eax, 5
|
||||||
add eax, [mem_block_arr]
|
add eax, [mem_block_arr]
|
||||||
dec [free_blocks]
|
dec [free_blocks]
|
||||||
|
@ -172,8 +172,7 @@ proc alloc_page
|
|||||||
btr [ebx], eax
|
btr [ebx], eax
|
||||||
mov [page_start],ebx
|
mov [page_start],ebx
|
||||||
sub ebx, sys_pgmap
|
sub ebx, sys_pgmap
|
||||||
shl ebx, 3
|
lea eax, [eax+ebx*8]
|
||||||
add eax,ebx
|
|
||||||
shl eax, 12
|
shl eax, 12
|
||||||
dec [pg_data.pages_free]
|
dec [pg_data.pages_free]
|
||||||
popfd
|
popfd
|
||||||
|
@ -430,8 +430,7 @@ proc video_alloc
|
|||||||
|
|
||||||
mov [cursor_start],ebx
|
mov [cursor_start],ebx
|
||||||
sub ebx, cursor_map
|
sub ebx, cursor_map
|
||||||
shl ebx, 3
|
lea eax,[eax+ebx*8]
|
||||||
add eax,ebx
|
|
||||||
|
|
||||||
shl eax,14
|
shl eax,14
|
||||||
add eax, LFBAddress+CURSOR_IMAGE_OFFSET
|
add eax, LFBAddress+CURSOR_IMAGE_OFFSET
|
||||||
|
@ -44,8 +44,7 @@ proc alloc_event
|
|||||||
btr [ebx], eax
|
btr [ebx], eax
|
||||||
mov [event_start],ebx
|
mov [event_start],ebx
|
||||||
sub ebx, event_map
|
sub ebx, event_map
|
||||||
shl ebx, 3
|
lea eax,[eax+ebx*8]
|
||||||
add eax,ebx
|
|
||||||
shl eax,5
|
shl eax,5
|
||||||
add eax, [events]
|
add eax, [events]
|
||||||
popfd
|
popfd
|
||||||
|
@ -282,8 +282,7 @@ proc alloc_cursor
|
|||||||
|
|
||||||
mov [cursor_start],ebx
|
mov [cursor_start],ebx
|
||||||
sub ebx, cursor_map
|
sub ebx, cursor_map
|
||||||
shl ebx, 3
|
lea eax,[eax+ebx*8]
|
||||||
add eax,ebx
|
|
||||||
shl eax,3
|
shl eax,3
|
||||||
lea eax,[cursors+eax+eax*2]
|
lea eax,[cursors+eax+eax*2]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user