Lines Matching defs:cbEntry

543  * @param   cbEntry             The required entry size.
546 const char *pchString, uint32_t cchString, uint32_t cbEntry)
548 cbEntry = RT_ALIGN_32(cbEntry, sizeof(RTSTRCACHEFREEMERGE));
549 Assert(cbEntry > cchString);
556 uint32_t iList = ASMBitLastSetU32(cbEntry) - 1;
557 if (!RT_IS_POWER_OF_TWO(cbEntry))
571 Assert(pFree->cbFree >= cbEntry);
574 if (pFree->cbFree == cbEntry)
578 uint32_t cRemainder = (pFree->cbFree - cbEntry) / sizeof(*pFree);
582 Assert((pRemainder->cbFree - cbEntry) == cRemainder * sizeof(*pFree));
597 size_t const cbChunk = RTSTRCACHE_MERGED_GROW_SIZE; AssertReturn(cbChunk > cbEntry * 2, NULL);
615 PRTSTRCACHEFREEMERGE pNewFree = (PRTSTRCACHEFREEMERGE)((uintptr_t)pFree + cbEntry);
617 pNewFree->cbFree = cbChunk - sizeof(*pNewFree) - cbEntry; Assert(pNewFree->cbFree < cbChunk && pNewFree->cbFree > 0);
642 RT_BZERO(&pEntry->szString[cchString], cbEntry - RT_UOFFSETOF(RTSTRCACHEENTRY, szString) - cchString);
667 size_t cbEntry = RT_UOFFSETOF(RTSTRCACHEBIGENTRY, Core.szString[cchString + 1]);
668 PRTSTRCACHEBIGENTRY pBigEntry = (PRTSTRCACHEBIGENTRY)RTMemAlloc(RT_ALIGN_Z(cbEntry, RTSTRCACHE_HEAP_ENTRY_SIZE_ALIGN));
676 pThis->cbBigEntries += cbEntry;
718 uint32_t const cbEntry = g_acbFixedLists[iFreeList];
719 uint32_t cLeft = RTSTRCACHE_FIXED_GROW_SIZE / cbEntry - 1;
720 pFree = (PRTSTRCACHEFREE)((uintptr_t)pChunk + cbEntry);
722 Assert(sizeof(*pChunk) <= cbEntry);
723 Assert(sizeof(*pFree) <= cbEntry);
724 Assert(cbEntry < RTSTRCACHE_FIXED_GROW_SIZE / 16);
729 pFree->cbFree = cbEntry;
732 pFree = (PRTSTRCACHEFREE)((uintptr_t)pFree + cbEntry);
859 uint32_t cbEntry = cchString32 + 1U + RT_UOFFSETOF(RTSTRCACHEENTRY, szString);
860 if (cbEntry >= RTSTRCACHE_HEAP_THRESHOLD)
863 else if (cbEntry >= RTSTRCACHE_MERGED_THRESHOLD_BIT)
864 pEntry = rtStrCacheAllocMergedEntry(pThis, uHash, pchString, cchString32, cbEntry);
868 rtStrCacheSelectFixedList(cbEntry));