Home | History | Annotate | Download | only in dist

Lines Matching refs:szAtom

13884 ** Maximum size of any allocation is ((1<<LOGMAX)*mem5.szAtom). Since
13885 ** mem5.szAtom is always at least 8 and 32-bit integers are used,
13906 int szAtom; /* Smallest possible allocation in bytes */
13907 int nBlock; /* Number of szAtom sized blocks in zPool */
13929 ** size mem5.szAtom. aiFreelist[1] holds blocks of size szAtom*2.
13951 #define MEM5LINK(idx) ((Mem5Link *)(&mem5.zPool[(idx)*mem5.szAtom]))
14015 int i = ((u8 *)p-mem5.zPool)/mem5.szAtom;
14017 iSize = mem5.szAtom * (1 << (mem5.aCtrl[i]&CTRL_LOGSIZE));
14074 for(iFullSz=mem5.szAtom, iLogsize=0; iFullSz<nByte; iFullSz *= 2, iLogsize++){}
14107 return (void*)&mem5.zPool[i*mem5.szAtom];
14118 ** the array of mem5.szAtom byte blocks pointed to by mem5.zPool.
14120 iBlock = ((u8 *)pOld-mem5.zPool)/mem5.szAtom;
14124 assert( ((u8 *)pOld-mem5.zPool)%mem5.szAtom==0 );
14134 assert( mem5.currentOut>=(size*mem5.szAtom) );
14136 szAtom;
14239 for(iFullSz=mem5.szAtom; iFullSz<n; iFullSz *= 2);
14287 mem5.szAtom = (1<<nMinLog);
14288 while( (int)sizeof(Mem5Link)>mem5.szAtom ){
14289 mem5.szAtom = mem5.szAtom << 1;
14292 mem5.nBlock = (nByte / (mem5.szAtom+sizeof(u8)));
14294 mem5.aCtrl = (u8 *)&mem5.zPool[mem5.nBlock*mem5.szAtom];
14349 nMinLog = memsys5Log(mem5.szAtom);
14352 fprintf(out, "freelist items of size %d: %d\n", mem5.szAtom << i, n);