/external/valgrind/main/none/tests/ |
map_unmap.c | 6 static unsigned int pagesize; variable 9 #define LEN (PAGES*pagesize) 29 off = (random() % LEN) & ~(pagesize-1); 32 /* printf("unmapping off=%d\n", off/pagesize); */ 33 munmap((char *)p + off, pagesize); 34 off += 619*pagesize; 52 pagesize = getpagesize();
|
/external/compiler-rt/lib/ |
enable_execute_stack.c | 43 /* On Darwin, pagesize is always 4096 bytes */ 44 const uintptr_t pageSize = 4096; 48 const uintptr_t pageSize = sysconf(_SC_PAGESIZE); 51 const uintptr_t pageAlignMask = ~(pageSize-1); 54 unsigned char* endPage = (unsigned char*)((p+TRAMPOLINE_SIZE+pageSize) & pageAlignMask);
|
/external/webkit/Source/JavaScriptCore/jit/ |
ExecutableAllocator.cpp | 34 size_t ExecutableAllocator::pageSize = 0; 43 // To mitigate this limitation increase the pagesize to allocate 46 ExecutableAllocator::pageSize = 256 * 1024; 48 ExecutableAllocator::pageSize = WTF::pageSize(); 90 if (!pageSize) 96 intptr_t pageStartPtr = startPtr & ~(pageSize - 1); 101 size += (pageSize - 1); 102 size &= ~(pageSize - 1);
|
/system/core/mkbootimg/ |
mkbootimg.c | 67 " [ --pagesize <pagesize> ]\n" 77 int write_padding(int fd, unsigned pagesize, unsigned itemsize) 79 unsigned pagemask = pagesize - 1; 86 count = pagesize - (itemsize & pagemask); 108 unsigned pagesize = 2048; local 153 } else if(!strcmp(arg,"--pagesize")) { 154 pagesize = strtoul(val, 0, 10); 155 if ((pagesize != 2048) && (pagesize != 4096 [all...] |
/system/extras/libpagemap/ |
pm_map.c | 54 usage.vss += map->proc->ker->pagesize; 55 usage.rss += (count >= 1) ? (map->proc->ker->pagesize) : (0); 56 usage.pss += (count >= 1) ? (map->proc->ker->pagesize / count) : (0); 57 usage.uss += (count == 1) ? (map->proc->ker->pagesize) : (0); 97 ws.vss += map->proc->ker->pagesize; 99 ws.rss += (count >= 1) ? (map->proc->ker->pagesize) : (0); 100 ws.pss += (count >= 1) ? (map->proc->ker->pagesize / count) : (0); 101 ws.uss += (count == 1) ? (map->proc->ker->pagesize) : (0);
|
/external/skia/tools/ |
PdfRenderer.cpp | 37 SkISize pageSize = SkISize::Make(width, height); 38 fPDFDevice = SkNEW_ARGS(SkPDFDevice, (pageSize, pageSize, SkMatrix::I()));
|
/external/bison/m4/ |
memchr.m4 | 56 int pagesize = getpagesize (); 58 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE, 61 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0) 62 fence = two_pages + pagesize;
|
/ndk/sources/host-tools/sed-4.2.1/m4/ |
memchr.m4 | 54 int pagesize = getpagesize (); 56 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE, 59 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0) 60 fence = two_pages + pagesize;
|
/external/jmonkeyengine/engine/src/core/com/jme3/font/ |
BitmapCharacterSet.java | 48 private int pageSize;
58 oc.write(pageSize, "pageSize", 0);
95 pageSize = ic.readInt("pageSize", 0);
204 ch.setPage(ch.getPage() + this.pageSize);
207 this.pageSize += styleSet.pageSize;
220 void setPageSize(int pageSize) {
221 this.pageSize = pageSize; [all...] |
/hardware/msm7k/libgralloc/ |
allocator.cpp | 47 size_t pagesize = getpagesize(); 48 mHeapSize = ((size + pagesize-1) & ~(pagesize-1)); 88 size_t pagesize = getpagesize(); local 90 int extra = ( -cur->start & ((pagesize/kMemoryAlign)-1) ) ; 109 int extra = ( -free_chunk->start & ((pagesize/kMemoryAlign)-1) ) ; 116 ALOGE_IF(((free_chunk->start*kMemoryAlign)&(pagesize-1)),
|
/hardware/msm7k/libgralloc-qsd8k/ |
allocator.cpp | 47 size_t pagesize = getpagesize(); 48 mHeapSize = ((size + pagesize-1) & ~(pagesize-1)); 88 size_t pagesize = getpagesize(); local 90 int extra = ( -cur->start & ((pagesize/kMemoryAlign)-1) ) ; 109 int extra = ( -free_chunk->start & ((pagesize/kMemoryAlign)-1) ) ; 116 ALOGE_IF(((free_chunk->start*kMemoryAlign)&(pagesize-1)),
|
/system/extras/procmem/ |
procmem.c | 46 int pagesize; /* cached for speed */ local 109 pagesize = pm_kernel_pagesize(ker); 192 address = pm_map_start(mi->map) + j * ker->pagesize; 249 mi->shared_clean * pagesize / 1024, 250 mi->shared_dirty * pagesize / 1024, 251 mi->private_clean * pagesize / 1024, 252 mi->private_dirty * pagesize / 1024, 261 mi->shared_clean * pagesize / 1024, 262 mi->shared_dirty * pagesize / 1024, 263 mi->private_clean * pagesize / 1024 [all...] |
/external/webkit/Source/JavaScriptCore/wtf/ |
TCSystemAlloc.cpp | 75 static size_t pagesize = 0; variable 165 if (pagesize == 0) pagesize = getpagesize(); 166 if (alignment < pagesize) alignment = pagesize; 174 // Ask for extra memory if alignment > pagesize 176 if (alignment > pagesize) { 177 extra = alignment - pagesize; 213 if (pagesize == 0) { 216 pagesize = system_info.dwPageSize [all...] |
PageBlock.h | 31 size_t pageSize(); 32 inline bool isPageAligned(void* address) { return !(reinterpret_cast<intptr_t>(address) & (pageSize() - 1)); } 33 inline bool isPageAligned(size_t size) { return !(size & (pageSize() - 1)); } 78 using WTF::pageSize;
|
StackBounds.cpp | 205 static inline void* getLowerStackBound(char* currentPage, DWORD pageSize) 209 if (currentPage >= reinterpret_cast<char*>(pageSize)) 210 currentPage -= pageSize; 215 return currentPage + pageSize; 221 static inline void* getUpperStackBound(char* currentPage, DWORD pageSize) 225 currentPage += pageSize; 228 return currentPage - pageSize; 239 DWORD pageSize = systemInfo.dwPageSize; 242 char* currentPage = reinterpret_cast<char*>(reinterpret_cast<DWORD>(thisFrame) & ~(pageSize - 1)); 243 void* lowerStackBound = getLowerStackBound(currentPage, pageSize); [all...] |
/external/harfbuzz_ng/src/ |
hb-blob.cc | 238 uintptr_t pagesize = -1, mask, length; local 242 pagesize = (uintptr_t) sysconf (_SC_PAGE_SIZE); 244 pagesize = (uintptr_t) sysconf (_SC_PAGESIZE); 246 pagesize = (uintptr_t) getpagesize (); 249 if ((uintptr_t) -1L == pagesize) { 250 DEBUG_MSG_FUNC (BLOB, blob, "failed to get pagesize: %s", strerror (errno)); 253 DEBUG_MSG_FUNC (BLOB, blob, "pagesize is %lu", (unsigned long) pagesize); 255 mask = ~(pagesize-1); 257 length = (const char *) (((uintptr_t) blob->data + blob->length + pagesize-1) & mask) - addr [all...] |
/external/compiler-rt/lib/sanitizer_common/tests/ |
sanitizer_common_test.cc | 68 uptr PageSize = GetPageSizeCached(); 73 size * PageSize, alignment * PageSize, "MmapAlignedOrDieTest"); 74 EXPECT_EQ(0U, res % (alignment * PageSize)); 75 internal_memset((void*)res, 1, size * PageSize); 76 UnmapOrDie((void*)res, size * PageSize);
|
/external/llvm/lib/Support/Unix/ |
Memory.inc | 87 static const size_t PageSize = process::get_self()->page_size(); 88 const size_t NumPages = (NumBytes+PageSize-1)/PageSize; 113 if (Start && Start % PageSize) 114 Start += PageSize - Start % PageSize; 116 void *Addr = ::mmap(reinterpret_cast<void*>(Start), PageSize*NumPages, 128 Result.Size = NumPages*PageSize; 180 size_t PageSize = process::get_self()->page_size(); 181 size_t NumPages = (NumBytes+PageSize-1)/PageSize [all...] |
/frameworks/native/libs/binder/ |
MemoryHeapBase.cpp | 53 const size_t pagesize = getpagesize(); local 54 size = ((size + pagesize-1) & ~(pagesize-1)); 77 const size_t pagesize = getpagesize(); local 78 size = ((size + pagesize-1) & ~(pagesize-1)); 89 const size_t pagesize = getpagesize(); local 90 size = ((size + pagesize-1) & ~(pagesize-1));
|
MemoryDealer.cpp | 185 size_t pagesize = getpagesize(); local 188 start &= ~(pagesize-1); 189 end = (end + pagesize-1) & ~(pagesize-1); 198 start = (start + pagesize-1) & ~(pagesize-1); 199 end &= ~(pagesize-1); 274 size_t pagesize = getpagesize(); local 275 mHeapSize = ((size + pagesize-1) & ~(pagesize-1)) 319 size_t pagesize = getpagesize(); local [all...] |
/external/webkit/Source/ThirdParty/ANGLE/src/compiler/ |
PoolAlloc.cpp | 75 pageSize(growthIncrement), 86 if (pageSize < 4*1024) 87 pageSize = 4*1024; 93 currentPageOffset = pageSize; 176 currentPageOffset = pageSize; 240 if (currentPageOffset + allocationSize <= pageSize) { 251 if (allocationSize + headerSkip > pageSize) { 262 new(memory) tHeader(inUseList, (numBytesToAlloc + pageSize - 1) / pageSize); 265 currentPageOffset = pageSize; // make next allocation come from a new pag [all...] |
/frameworks/native/libs/utils/ |
LinearAllocator.cpp | 101 void* end(int pageSize) { 102 return (void*) (((size_t)start()) + pageSize); 194 LinearAllocator::Page* LinearAllocator::newPage(size_t pageSize) { 195 pageSize = ALIGN(pageSize + sizeof(LinearAllocator::Page)); 196 ADD_ALLOCATION(pageSize); 197 mTotalAllocated += pageSize; 199 void* buf = malloc(pageSize);
|
/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_common.cc | 23 static uptr PageSize; 24 if (!PageSize) 25 PageSize = GetPageSize(); 26 return PageSize; 104 uptr PageSize = GetPageSizeCached(); 105 uptr kMinFileLen = PageSize; 119 while (read_len + PageSize <= size) { 120 uptr just_read = internal_read(fd, *buff + read_len, PageSize); 179 // uptr PageSize = GetPageSizeCached();
|
/external/harfbuzz_ng/test/api/ |
test-blob.c | 116 uintptr_t pagesize = -1; local 119 pagesize = (uintptr_t) sysconf (_SC_PAGE_SIZE); 121 pagesize = (uintptr_t) sysconf (_SC_PAGESIZE); 123 pagesize = (uintptr_t) getpagesize (); 126 g_assert (pagesize != (uintptr_t) -1); 128 return pagesize; 172 uintptr_t pagesize = get_pagesize (); local 174 data = mmap (NULL, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); 177 mprotect ((char *) data, pagesize, PROT_READ);
|
/libcore/luni/src/main/java/java/nio/ |
MappedByteBuffer.java | 62 int pageSize = (int) Libcore.os.sysconf(_SC_PAGE_SIZE); 63 int pageOffset = (int) (address % pageSize); 66 int pageCount = (int) ((size + pageSize - 1) / pageSize);
|