• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/Heimdal-398.1.2/lib/sqlite/

Lines Matching refs:iLogsize

16333 ** on.  It should be found on mem5.aiFreelist[iLogsize].
16335 static void memsys5Unlink(int i, int iLogsize){
16338 assert( iLogsize>=0 && iLogsize<=LOGMAX );
16339 assert( (mem5.aCtrl[i] & CTRL_LOGSIZE)==iLogsize );
16344 mem5.aiFreelist[iLogsize] = next;
16354 ** Link the chunk at mem5.aPool[i] so that is on the iLogsize
16357 static void memsys5Link(int i, int iLogsize){
16361 assert( iLogsize>=0 && iLogsize<=LOGMAX );
16362 assert( (mem5.aCtrl[i] & CTRL_LOGSIZE)==iLogsize );
16364 x = MEM5LINK(i)->next = mem5.aiFreelist[iLogsize];
16370 mem5.aiFreelist[iLogsize] = i;
16401 ** Find the first entry on the freelist iLogsize. Unlink that
16404 static int memsys5UnlinkFirst(int iLogsize){
16408 assert( iLogsize>=0 && iLogsize<=LOGMAX );
16409 i = iFirst = mem5.aiFreelist[iLogsize];
16415 memsys5Unlink(iFirst, iLogsize);
16433 int iLogsize; /* Log2 of iFullSz/POW2_MIN */
16452 for(iFullSz=mem5.szAtom, iLogsize=0; iFullSz<nByte; iFullSz *= 2, iLogsize++){}
16454 /* Make sure mem5.aiFreelist[iLogsize] contains at least one free
16456 ** two in order to create a new free block of size iLogsize.
16458 for(iBin=iLogsize; mem5.aiFreelist[iBin]<0 && iBin<=LOGMAX; iBin++){}
16465 while( iBin>iLogsize ){
16473 mem5.aCtrl[i] = iLogsize;
16492 u32 size, iLogsize;
16505 iLogsize = mem5.aCtrl[iBlock] & CTRL_LOGSIZE;
16506 size = 1<<iLogsize;
16518 mem5.aCtrl[iBlock] = CTRL_FREE | iLogsize;
16519 while( ALWAYS(iLogsize<LOGMAX) ){
16521 if( (iBlock>>iLogsize) & 1 ){
16527 if( (iBuddy+(1<<iLogsize))>mem5.nBlock ) break;
16528 if( mem5.aCtrl[iBuddy]!=(CTRL_FREE | iLogsize) ) break;
16529 memsys5Unlink(iBuddy, iLogsize);
16530 iLogsize++;
16532 mem5.aCtrl[iBuddy] = CTRL_FREE | iLogsize;
16536 mem5.aCtrl[iBlock] = CTRL_FREE | iLogsize;
16541 memsys5Link(iBlock, iLogsize);