Lines Matching defs:cbAlignment
112 uint32_t cbAlignment;
158 RTDECL(int) RTMemCacheCreate(PRTMEMCACHE phMemCache, size_t cbObject, size_t cbAlignment, uint32_t cMaxObjects,
170 if (cbAlignment == 0)
173 cbAlignment = cbObject;
175 cbAlignment = 4;
177 cbAlignment = 8;
179 cbAlignment = 16;
181 cbAlignment = 32;
183 cbAlignment = 64;
187 AssertReturn(!((cbAlignment - 1) & cbAlignment), VERR_NOT_POWER_OF_TWO);
188 AssertReturn(cbAlignment <= 64, VERR_OUT_OF_RANGE);
205 pThis->cbObject = (uint32_t)RT_ALIGN_Z(cbObject, cbAlignment);
206 pThis->cbAlignment = (uint32_t)cbAlignment;
207 pThis->cPerPage = (uint32_t)((PAGE_SIZE - RT_ALIGN_Z(sizeof(RTMEMCACHEPAGE), cbAlignment)) / pThis->cbObject);
316 pPage->pbObjects = pb; Assert(RT_ALIGN_P(pb, pThis->cbAlignment) == pb);
557 Assert(RT_ALIGN_P(pvObj, pThis->cbAlignment) == pvObj);