Lines Matching refs:szAtom

96   int szAtom;      /* Smallest possible allocation in bytes */  member
143 #define MEM5LINK(idx) ((Mem5Link *)(&mem5.zPool[(idx)*mem5.szAtom]))
204 i = (int)(((u8 *)p-mem5.zPool)/mem5.szAtom); in memsys5Size()
206 iSize = mem5.szAtom * (1 << (mem5.aCtrl[i]&CTRL_LOGSIZE)); in memsys5Size()
242 for(iFullSz=mem5.szAtom,iLogsize=0; iFullSz<nByte; iFullSz*=2,iLogsize++){} in memsys5MallocUnsafe()
280 memset(&mem5.zPool[i*mem5.szAtom], 0xAA, iFullSz); in memsys5MallocUnsafe()
284 return (void*)&mem5.zPool[i*mem5.szAtom]; in memsys5MallocUnsafe()
297 iBlock = (int)(((u8 *)pOld-mem5.zPool)/mem5.szAtom); in memsys5FreeUnsafe()
301 assert( ((u8 *)pOld-mem5.zPool)%mem5.szAtom==0 ); in memsys5FreeUnsafe()
313 assert( mem5.currentOut>=(size*mem5.szAtom) ); in memsys5FreeUnsafe()
315 mem5.currentOut -= size*mem5.szAtom; in memsys5FreeUnsafe()
347 memset(&mem5.zPool[iBlock*mem5.szAtom], 0x55, size); in memsys5FreeUnsafe()
423 if( n<=mem5.szAtom*2 ){ in memsys5Roundup()
424 if( n<=mem5.szAtom ) return mem5.szAtom; in memsys5Roundup()
425 return mem5.szAtom*2; in memsys5Roundup()
428 for(iFullSz=mem5.szAtom*8; iFullSz<n; iFullSz *= 4); in memsys5Roundup()
478 mem5.szAtom = (1<<nMinLog); in memsys5Init()
479 while( (int)sizeof(Mem5Link)>mem5.szAtom ){ in memsys5Init()
480 mem5.szAtom = mem5.szAtom << 1; in memsys5Init()
483 mem5.nBlock = (nByte / (mem5.szAtom+sizeof(u8))); in memsys5Init()
485 mem5.aCtrl = (u8 *)&mem5.zPool[mem5.nBlock*mem5.szAtom]; in memsys5Init()
540 nMinLog = memsys5Log(mem5.szAtom); in sqlite3Memsys5Dump()
543 fprintf(out, "freelist items of size %d: %d\n", mem5.szAtom << i, n); in sqlite3Memsys5Dump()