Home | History | Annotate | Download | only in orig

Lines Matching refs:iLogsize

23044 ** on.  It should be found on mem5.aiFreelist[iLogsize].
23046 static void memsys5Unlink(int i, int iLogsize){
23049 assert( iLogsize>=0 && iLogsize<=LOGMAX );
23050 assert( (mem5.aCtrl[i] & CTRL_LOGSIZE)==iLogsize );
23055 mem5.aiFreelist[iLogsize] = next;
23065 ** Link the chunk at mem5.aPool[i] so that is on the iLogsize
23068 static void memsys5Link(int i, int iLogsize){
23072 assert( iLogsize>=0 && iLogsize<=LOGMAX );
23073 assert( (mem5.aCtrl[i] & CTRL_LOGSIZE)==iLogsize );
23075 x = MEM5LINK(i)->next = mem5.aiFreelist[iLogsize];
23081 mem5.aiFreelist[iLogsize] = i;
23121 int iLogsize; /* Log2 of iFullSz/POW2_MIN */
23139 for(iFullSz=mem5.szAtom,iLogsize=0; iFullSz<nByte; iFullSz*=2,iLogsize++){}
23141 /* Make sure mem5.aiFreelist[iLogsize] contains at least one free
23143 ** two in order to create a new free block of size iLogsize.
23145 for(iBin=iLogsize; iBin<=LOGMAX && mem5.aiFreelist[iBin]<0; iBin++){}
23153 while( iBin>iLogsize ){
23161 mem5.aCtrl[i] = iLogsize;
23188 u32 size, iLogsize;
23201 iLogsize = mem5.aCtrl[iBlock] & CTRL_LOGSIZE;
23202 size = 1<<iLogsize;
23217 mem5.aCtrl[iBlock] = CTRL_FREE | iLogsize;
23218 while( ALWAYS(iLogsize<LOGMAX) ){
23220 if( (iBlock>>iLogsize) & 1 ){
23227 if( mem5.aCtrl[iBuddy]!=(CTRL_FREE | iLogsize) ) break;
23228 memsys5Unlink(iBuddy, iLogsize);
23229 iLogsize++;
23231 mem5.aCtrl[iBuddy] = CTRL_FREE | iLogsize;
23235 mem5.aCtrl[iBlock] = CTRL_FREE | iLogsize;
23247 memsys5Link(iBlock, iLogsize);