Lines Matching defs:iLogsize

17936 ** on.  It should be found on mem5.aiFreelist[iLogsize].
17938 static void memsys5Unlink(int i, int iLogsize){
17941 assert( iLogsize>=0 && iLogsize<=LOGMAX );
17942 assert( (mem5.aCtrl[i] & CTRL_LOGSIZE)==iLogsize );
17947 mem5.aiFreelist[iLogsize] = next;
17957 ** Link the chunk at mem5.aPool[i] so that is on the iLogsize
17960 static void memsys5Link(int i, int iLogsize){
17964 assert( iLogsize>=0 && iLogsize<=LOGMAX );
17965 assert( (mem5.aCtrl[i] & CTRL_LOGSIZE)==iLogsize );
17967 x = MEM5LINK(i)->next = mem5.aiFreelist[iLogsize];
17973 mem5.aiFreelist[iLogsize] = i;
18017 int iLogsize; /* Log2 of iFullSz/POW2_MIN */
18036 for(iFullSz=mem5.szAtom, iLogsize=0; iFullSz<nByte; iFullSz *= 2, iLogsize++){}
18038 /* Make sure mem5.aiFreelist[iLogsize] contains at least one free
18040 ** two in order to create a new free block of size iLogsize.
18042 for(iBin=iLogsize; iBin<=LOGMAX && mem5.aiFreelist[iBin]<0; iBin++){}
18050 while( iBin>iLogsize ){
18058 mem5.aCtrl[i] = iLogsize;
18083 u32 size, iLogsize;
18096 iLogsize = mem5.aCtrl[iBlock] & CTRL_LOGSIZE;
18097 size = 1<<iLogsize;
18109 mem5.aCtrl[iBlock] = CTRL_FREE | iLogsize;
18110 while( ALWAYS(iLogsize<LOGMAX) ){
18112 if( (iBlock>>iLogsize) & 1 ){
18118 if( (iBuddy+(1<<iLogsize))>mem5.nBlock ) break;
18119 if( mem5.aCtrl[iBuddy]!=(CTRL_FREE | iLogsize) ) break;
18120 memsys5Unlink(iBuddy, iLogsize);
18121 iLogsize++;
18123 mem5.aCtrl[iBuddy] = CTRL_FREE | iLogsize;
18127 mem5.aCtrl[iBlock] = CTRL_FREE | iLogsize;
18139 memsys5Link(iBlock, iLogsize);