Lines Matching defs:iLogsize
28301 ** on. It should be found on mem5.aiFreelist[iLogsize].
28303 static void memsys5Unlink(int i, int iLogsize){
28306 assert( iLogsize>=0 && iLogsize<=LOGMAX );
28307 assert( (mem5.aCtrl[i] & CTRL_LOGSIZE)==iLogsize );
28312 mem5.aiFreelist[iLogsize] = next;
28322 ** Link the chunk at mem5.aPool[i] so that is on the iLogsize
28325 static void memsys5Link(int i, int iLogsize){
28329 assert( iLogsize>=0 && iLogsize<=LOGMAX );
28330 assert( (mem5.aCtrl[i] & CTRL_LOGSIZE)==iLogsize );
28332 x = MEM5LINK(i)->next = mem5.aiFreelist[iLogsize];
28338 mem5.aiFreelist[iLogsize] = i;
28378 int iLogsize; /* Log2 of iFullSz/POW2_MIN */
28396 for(iFullSz=mem5.szAtom,iLogsize=0; iFullSz<nByte; iFullSz*=2,iLogsize++){}
28398 /* Make sure mem5.aiFreelist[iLogsize] contains at least one free
28400 ** two in order to create a new free block of size iLogsize.
28402 for(iBin=iLogsize; iBin<=LOGMAX && mem5.aiFreelist[iBin]<0; iBin++){}
28410 while( iBin>iLogsize ){
28418 mem5.aCtrl[i] = iLogsize;
28445 u32 size, iLogsize;
28458 iLogsize = mem5.aCtrl[iBlock] & CTRL_LOGSIZE;
28459 size = 1<<iLogsize;
28474 mem5.aCtrl[iBlock] = CTRL_FREE | iLogsize;
28475 while( ALWAYS(iLogsize<LOGMAX) ){
28477 if( (iBlock>>iLogsize) & 1 ){
28484 if( mem5.aCtrl[iBuddy]!=(CTRL_FREE | iLogsize) ) break;
28485 memsys5Unlink(iBuddy, iLogsize);
28486 iLogsize++;
28488 mem5.aCtrl[iBuddy] = CTRL_FREE | iLogsize;
28492 mem5.aCtrl[iBlock] = CTRL_FREE | iLogsize;
28504 memsys5Link(iBlock, iLogsize);