/external/swiftshader/third_party/marl/src/ |
D | memory.cpp | 30 inline size_t pageSize() { in pageSize() function 34 auto mapping = mmap(nullptr, count * pageSize(), PROT_READ | PROT_WRITE, in allocatePages() 43 auto res = munmap(ptr, count * pageSize()); in freePages() 48 auto res = mprotect(addr, pageSize(), PROT_NONE); in protectPage() 62 inline size_t pageSize() { in pageSize() function 99 inline size_t pageSize() { in pageSize() function 108 auto mapping = VirtualAlloc(nullptr, count * pageSize(), in allocatePages() 121 auto res = VirtualProtect(addr, pageSize(), PAGE_NOACCESS, &oldVal); in protectPage() 144 MARL_ASSERT(alignment < pageSize(), in pagedMalloc() 146 int(alignment), int(pageSize())); in pagedMalloc() [all …]
|
/external/angle/third_party/vulkan-deps/glslang/src/glslang/MachineIndependent/ |
D | PoolAlloc.cpp | 73 pageSize(growthIncrement), in TPoolAllocator() 83 if (pageSize < 4*1024) in TPoolAllocator() 84 pageSize = 4*1024; in TPoolAllocator() 90 currentPageOffset = pageSize; in TPoolAllocator() 185 currentPageOffset = pageSize; in push() 252 if (currentPageOffset + allocationSize <= pageSize) { in allocate() 263 if (allocationSize + headerSkip > pageSize) { in allocate() 274 new(memory) tHeader(inUseList, (numBytesToAlloc + pageSize - 1) / pageSize); in allocate() 277 currentPageOffset = pageSize; // make next allocation come from a new page in allocate() 291 memory = reinterpret_cast<tHeader*>(::new char[pageSize]); in allocate()
|
/external/deqp-deps/glslang/glslang/MachineIndependent/ |
D | PoolAlloc.cpp | 73 pageSize(growthIncrement), in TPoolAllocator() 83 if (pageSize < 4*1024) in TPoolAllocator() 84 pageSize = 4*1024; in TPoolAllocator() 90 currentPageOffset = pageSize; in TPoolAllocator() 185 currentPageOffset = pageSize; in push() 252 if (currentPageOffset + allocationSize <= pageSize) { in allocate() 263 if (allocationSize + headerSkip > pageSize) { in allocate() 274 new(memory) tHeader(inUseList, (numBytesToAlloc + pageSize - 1) / pageSize); in allocate() 277 currentPageOffset = pageSize; // make next allocation come from a new page in allocate() 291 memory = reinterpret_cast<tHeader*>(::new char[pageSize]); in allocate()
|
/external/swiftshader/src/OpenGL/compiler/ |
D | PoolAlloc.cpp | 63 , pageSize(growthIncrement), in TPoolAllocator() 89 if (pageSize < 4*1024) in TPoolAllocator() 90 pageSize = 4*1024; in TPoolAllocator() 96 currentPageOffset = pageSize; in TPoolAllocator() 185 currentPageOffset = pageSize; in push() 263 if (allocationSize <= pageSize - currentPageOffset) { in allocate() 274 if (allocationSize > pageSize - headerSkip) { in allocate() 289 new(memory) tHeader(inUseList, (numBytesToAlloc + pageSize - 1) / pageSize); in allocate() 292 currentPageOffset = pageSize; // make next allocation come from a new page in allocate() 306 memory = reinterpret_cast<tHeader*>(::new char[pageSize]); in allocate()
|
/external/swiftshader/src/Reactor/ |
D | ExecutableMemory.cpp | 217 static int pageSize = [] { in memoryPageSize() local 227 return pageSize; in memoryPageSize() 266 size_t pageSize = memoryPageSize(); in allocateMemoryPages() local 267 size_t length = roundUp(bytes, pageSize); in allocateMemoryPages() 325 ASSERT(roundUp(reservation, pageSize) == reservation); in allocateMemoryPages() 348 mapping = allocate(length, pageSize); in allocateMemoryPages() 391 size_t pageSize = memoryPageSize(); in deallocateMemoryPages() 392 size_t length = (bytes + pageSize - 1) & ~(pageSize - 1); in deallocateMemoryPages() 396 size_t pageSize = memoryPageSize(); in deallocateMemoryPages() 397 size_t length = roundUp(bytes, pageSize); in deallocateMemoryPages()
|
/external/scudo/standalone/tools/ |
D | compute_size_class_config.cpp | 22 const std::vector<size_t> &classes, size_t pageSize, in measureWastage() argument 33 if (wastage > 2 * pageSize) in measureWastage() 34 wastage = 2 * pageSize; in measureWastage() 73 size_t pageSize = 4096; in main() local 93 if (matchArg(pageSize, "-p") || matchArg(largestClass, "-c") || in main() 118 size_t newWastage = measureWastage(allocs, classes, pageSize, headerSize); in main() 147 measureWastage(allocs, classes, pageSize, headerSize), numBits, in main()
|
/external/llvm-project/compiler-rt/lib/scudo/standalone/tools/ |
D | compute_size_class_config.cpp | 23 size_t pageSize, in measureWastage() argument 34 if (wastage > 2 * pageSize) in measureWastage() 35 wastage = 2 * pageSize; in measureWastage() 73 size_t pageSize = 4096; in main() local 93 if (matchArg(pageSize, "-p") || matchArg(largestClass, "-c") || in main() 118 size_t newWastage = measureWastage(allocs, classes, pageSize, headerSize); in main() 147 measureWastage(allocs, classes, pageSize, headerSize), numBits, in main()
|
/external/llvm-project/compiler-rt/lib/builtins/ |
D | enable_execute_stack.c | 52 const uintptr_t pageSize = 4096; in __enable_execute_stack() 56 const uintptr_t pageSize = sysconf(_SC_PAGESIZE); in __enable_execute_stack() 59 const uintptr_t pageAlignMask = ~(pageSize - 1); in __enable_execute_stack() 63 (unsigned char *)((p + TRAMPOLINE_SIZE + pageSize) & pageAlignMask); in __enable_execute_stack()
|
/external/compiler-rt/lib/builtins/ |
D | enable_execute_stack.c | 58 const uintptr_t pageSize = 4096; in __enable_execute_stack() 62 const uintptr_t pageSize = sysconf(_SC_PAGESIZE); in __enable_execute_stack() 65 const uintptr_t pageAlignMask = ~(pageSize-1); in __enable_execute_stack() 68 unsigned char* endPage = (unsigned char*)((p+TRAMPOLINE_SIZE+pageSize) & pageAlignMask); in __enable_execute_stack()
|
/external/swiftshader/src/Common/ |
D | Memory.cpp | 74 static int pageSize = 0; in memoryPageSize() local 76 if(pageSize == 0) in memoryPageSize() 81 pageSize = systemInfo.dwPageSize; in memoryPageSize() 83 pageSize = sysconf(_SC_PAGESIZE); in memoryPageSize() 87 return pageSize; in memoryPageSize()
|
/external/skia/tests/ |
D | PDFTaggedPruningTest.cpp | 29 SkSize pageSize = SkSize::Make(612, 792); // U.S. Letter in DEF_TEST() local 67 document->beginPage(pageSize.width(), in DEF_TEST() 68 pageSize.height()); in DEF_TEST() 94 SkSize pageSize = SkSize::Make(612, 792); // U.S. Letter in DEF_TEST() local 132 document->beginPage(pageSize.width(), in DEF_TEST() 133 pageSize.height()); in DEF_TEST()
|
D | PDFTaggedLinkTest.cpp | 30 SkSize pageSize = SkSize::Make(612, 792); // U.S. Letter in DEF_TEST() local 60 document->beginPage(pageSize.width(), in DEF_TEST() 61 pageSize.height()); in DEF_TEST()
|
D | PDFTaggedTest.cpp | 28 SkSize pageSize = SkSize::Make(612, 792); // U.S. Letter in DEF_TEST() local 110 document->beginPage(pageSize.width(), in DEF_TEST() 111 pageSize.height()); in DEF_TEST() 153 canvas = document->beginPage(pageSize.width(), in DEF_TEST() 154 pageSize.height()); in DEF_TEST()
|
D | PDFTaggedTableTest.cpp | 29 SkSize pageSize = SkSize::Make(612, 792); // U.S. Letter in DEF_TEST() local 113 document->beginPage(pageSize.width(), in DEF_TEST() 114 pageSize.height()); in DEF_TEST()
|
/external/piex/src/binary_parse/ |
D | range_checked_byte_ptr.cc | 38 virtual size_t pageSize() const; 53 size_t MemoryPagedByteArray::pageSize() const { return len_; } in pageSize() function in piex::binary_parse::__anonf932d7d10111::MemoryPagedByteArray 196 size_t page_index = offset / array_->pageSize(); in loadPageForOffset() 205 size_t expected_page_size = array_->pageSize(); in loadPageForOffset() 206 if (page_index == (array_->length() - 1) / array_->pageSize()) { in loadPageForOffset() 207 expected_page_size = array_->length() - array_->pageSize() * page_index; in loadPageForOffset() 217 page_begin_offset_ = page_index * array_->pageSize(); in loadPageForOffset()
|
D | cached_paged_byte_array.h | 42 virtual size_t pageSize() const { return paged_byte_array_->pageSize(); } in pageSize() function
|
/external/skqp/tests/ |
D | PDFTaggedTest.cpp | 27 SkSize pageSize = SkSize::Make(612, 792); // U.S. Letter in DEF_TEST() local 105 document->beginPage(pageSize.width(), in DEF_TEST() 106 pageSize.height()); in DEF_TEST() 148 canvas = document->beginPage(pageSize.width(), in DEF_TEST() 149 pageSize.height()); in DEF_TEST()
|
/external/llvm-project/compiler-rt/test/gwp_asan/ |
D | heap_buffer_overflow.cpp | 15 reinterpret_cast<char *>(malloc(pageSize())); in main() 16 volatile char x = *(Ptr + pageSize()); in main()
|
/external/skia/docs/examples/ |
D | PDF.cpp | 12 SkSize pageSize) { in WritePDF() argument 21 SkCanvas* pageCanvas = pdfDocument->beginPage(pageSize.width(), in WritePDF() 22 pageSize.height()); in WritePDF()
|
/external/robolectric-shadows/shadows/supportv4/src/main/java/org/robolectric/shadows/support/v4/ |
D | ShadowMediaBrowserCompat.java | 134 final int pageSize = options.getInt(EXTRA_PAGE_SIZE, -1); in applyOptionsToResults() local 135 if (page == -1 && pageSize == -1) { in applyOptionsToResults() 139 final int firstItemIndex = page * pageSize; in applyOptionsToResults() 140 final int lastItemIndex = firstItemIndex + pageSize; in applyOptionsToResults() 141 if (page < 0 || pageSize < 1 || firstItemIndex >= resultsSize) { in applyOptionsToResults()
|
/external/compiler-rt/lib/safestack/ |
D | safestack.cc | 73 static unsigned pageSize; variable 192 CHECK_EQ((guard & (pageSize - 1)), 0); in INTERCEPTOR() 224 pageSize = sysconf(_SC_PAGESIZE); in __safestack_init()
|
/external/skqp/tools/ |
D | ProcStats.cpp | 49 const long pageSize = sysconf(_SC_PAGESIZE); in getCurrResidentSetSizeMB() local 59 return rssPages * pageSize / 1024 / 1024; in getCurrResidentSetSizeMB()
|
/external/skia/tools/ |
D | ProcStats.cpp | 65 const long pageSize = sysconf(_SC_PAGESIZE); in getCurrResidentSetSizeBytes() local 75 return rssPages * pageSize; in getCurrResidentSetSizeBytes()
|
/external/deqp/external/vulkancts/framework/vulkan/ |
D | vkBinaryRegistry.hpp | 158 const size_t pageSize = (size_t)(1<<ELEMENTS_PER_PAGE_LOG2)*sizeof(Element); in makePageResident() local 159 const size_t pageOffset = pageNdx*pageSize; in makePageResident() 160 const size_t numBytesToRead = de::min(m_elements.size()*sizeof(Element) - pageOffset, pageSize); in makePageResident()
|
/external/swiftshader/src/System/ |
D | Memory.cpp | 76 static int pageSize = [] { in memoryPageSize() local 86 return pageSize; in memoryPageSize()
|