Searched refs:szAtom (Results 1 – 2 of 2) sorted by relevance
16284 int szAtom; /* Smallest possible allocation in bytes */ member16329 #define MEM5LINK(idx) ((Mem5Link *)(&mem5.zPool[(idx)*mem5.szAtom]))16393 int i = ((u8 *)p-mem5.zPool)/mem5.szAtom; in memsys5Size()16395 iSize = mem5.szAtom * (1 << (mem5.aCtrl[i]&CTRL_LOGSIZE)); in memsys5Size()16452 for(iFullSz=mem5.szAtom, iLogsize=0; iFullSz<nByte; iFullSz *= 2, iLogsize++){} in memsys5MallocUnsafe()16485 return (void*)&mem5.zPool[i*mem5.szAtom]; in memsys5MallocUnsafe()16498 iBlock = ((u8 *)pOld-mem5.zPool)/mem5.szAtom; in memsys5FreeUnsafe()16502 assert( ((u8 *)pOld-mem5.zPool)%mem5.szAtom==0 ); in memsys5FreeUnsafe()16512 assert( mem5.currentOut>=(size*mem5.szAtom) ); in memsys5FreeUnsafe()16514 mem5.currentOut -= size*mem5.szAtom; in memsys5FreeUnsafe()[all …]
21876 int szAtom; /* Smallest possible allocation in bytes */ member21923 #define MEM5LINK(idx) ((Mem5Link *)(&mem5.zPool[(idx)*mem5.szAtom]))21984 i = (int)(((u8 *)p-mem5.zPool)/mem5.szAtom); in memsys5Size()21986 iSize = mem5.szAtom * (1 << (mem5.aCtrl[i]&CTRL_LOGSIZE)); in memsys5Size()22022 for(iFullSz=mem5.szAtom,iLogsize=0; iFullSz<nByte; iFullSz*=2,iLogsize++){} in memsys5MallocUnsafe()22060 memset(&mem5.zPool[i*mem5.szAtom], 0xAA, iFullSz); in memsys5MallocUnsafe()22064 return (void*)&mem5.zPool[i*mem5.szAtom]; in memsys5MallocUnsafe()22077 iBlock = (int)(((u8 *)pOld-mem5.zPool)/mem5.szAtom); in memsys5FreeUnsafe()22081 assert( ((u8 *)pOld-mem5.zPool)%mem5.szAtom==0 ); in memsys5FreeUnsafe()22093 assert( mem5.currentOut>=(size*mem5.szAtom) ); in memsys5FreeUnsafe()[all …]