From b6e4eff9a9a8cc8aa37700f2670753e304d54c84 Mon Sep 17 00:00:00 2001 From: pavelyakov Date: Fri, 21 Sep 2018 09:20:49 +0000 Subject: [PATCH] Allocation: optimized speed allocate git-svn-id: svn://kolibrios.org@7401 a494cfbc-eb01-0410-851d-a64ba20cac60 --- .../allocation/mallocFreeRealloc.c | 59 +++++------------- .../allocation/mallocFreeRealloc.kex | Bin 8764 -> 0 bytes 2 files changed, 15 insertions(+), 44 deletions(-) delete mode 100644 programs/cmm/experimental/allocation/mallocFreeRealloc.kex diff --git a/programs/cmm/experimental/allocation/mallocFreeRealloc.c b/programs/cmm/experimental/allocation/mallocFreeRealloc.c index a59b207c28..ea330ae612 100644 --- a/programs/cmm/experimental/allocation/mallocFreeRealloc.c +++ b/programs/cmm/experimental/allocation/mallocFreeRealloc.c @@ -36,26 +36,25 @@ char program_path[4096] = {0}; return EAX; } -:dword offsetAllocData = 0; +:dword __offsetAllocData = 0; +:dword __limitAllocSize = 0; +:dword __sizeFullAllocMemory = 0; :dword malloc(dword size) { - dword array = 0; dword orderSize = 1; dword order = 0; dword stackAlloc = 0; dword stackKey = 0; dword result = 0; + IF(!__offsetAllocData) __offsetAllocData = mallocSystem(4*40); size+=4; - IF(!offsetAllocData) offsetAllocData = mallocSystem(4*32); - + order = __offsetAllocData; WHILE(orderSizef^D*OM zqnP+%0!)AjFaajO1egF5U;<2l2`~XBzyz286JP>NfC(@GCcp%k025#WOn?b60Vco% z{yl*m{aO|74eg*1_8JXo>V>0oa4s?@$usAf6K{l1!$`U71E@=7V&`$aAeB8ko7vb- z!bUf$k+#ashyM0e)C89DWrm8T+*8)ml;B@eY^bNH8;uzmpZi93&-|3)l)7mpQ74Iz zZ>cQW2dqY6vmS_i-$E|EDij5tT3MP#fgA}>VeABCT)9Z(KOZL8%}}sR$??biVLWi@ z5(UI$tX72_4;yYt8xvF@sC_M>A>%s_AEF)DW$MV1Yq^#cS_AdcYTuAmHLqPlG@3Ff zMLm)oG>BIEd89?N?)}wXMNa{6XnOf>VR*6D-gUe6rN2PB{4E{oomwTlABh1_s-wh< pifH1|7Y^bV!FQaJ3F>J7OU2ga?HW$GD`GO0pjF=6KY+gM`2_fp;bQ;*