Searched refs:ELEMENTS_PER_PAGE_LOG2 (Results 1 – 2 of 2) sorted by relevance
113 ELEMENTS_PER_PAGE_LOG2 = 10 enumerator116 …e size_t getPageForElement (size_t elemNdx) const { return elemNdx >> ELEMENTS_PER_PAGE_LOG2; } in getPageForElement()133 …const size_t numPages = (numElements >> ELEMENTS_PER_PAGE_LOG2) + ((numElements & ((1u<<ELEMENTS_P… in LazyResource()158 const size_t pageSize = (size_t)(1<<ELEMENTS_PER_PAGE_LOG2)*sizeof(Element); in makePageResident()167 m_resource->read((deUint8*)&m_elements[pageNdx << ELEMENTS_PER_PAGE_LOG2], (int)numBytesToRead); in makePageResident()
98 ELEMENTS_PER_PAGE_LOG2 = 4 //!< 16 elements per page. enumerator299 deUintptr newCapacity = (deUintptr)deAlignPtr((void*)capacity, 1 << ELEMENTS_PER_PAGE_LOG2); in reserve()300 deUintptr reqPageTableCapacity = newCapacity >> ELEMENTS_PER_PAGE_LOG2; in reserve()325 deUintptr pageAllocSize = elementSize << ELEMENTS_PER_PAGE_LOG2; in reserve()326 deUintptr pageTableNdx = m_capacity >> ELEMENTS_PER_PAGE_LOG2; in reserve()352 m_capacity = pageTableNdx << ELEMENTS_PER_PAGE_LOG2; in reserve()377 deUintptr pageNdx = ((deUintptr)ndx >> ELEMENTS_PER_PAGE_LOG2); in getPtr()378 deUintptr subNdx = (deUintptr)ndx & ((1 << ELEMENTS_PER_PAGE_LOG2) - 1); in getPtr()