/external/chromium_org/third_party/sqlite/src/tool/ |
diffdb.c | 13 #define PAGESIZE 1024 19 unsigned char a1[PAGESIZE], a2[PAGESIZE]; 35 while( read(db1, a1, PAGESIZE)==PAGESIZE && read(db2,a2,PAGESIZE)==PAGESIZE ){ 36 if( memcmp(a1,a2,PAGESIZE) ){
|
showdb.c | 14 static int pagesize = 1024; /* Size of a database page */ variable 120 iStart = (iPg-1)*pagesize; 122 iPg, iStart, iStart+pagesize-1); 123 aData = print_byte_range(iStart, pagesize, 0); 260 maxLocal = pagesize-35; 261 minLocal = (pagesize-12)*32/255-23; 263 maxLocal = (pagesize-12)*64/255-23; 264 minLocal = (pagesize-12)*32/255-23; 267 surplus = minLocal + (nPayload-minLocal)%(pagesize-4); 385 zMap = malloc(pagesize); [all...] |
showwal.c | 14 static int pagesize = 1024; /* Size of a database page */ variable 140 iStart = 32 + (iFrame-1)*(pagesize+24); 142 iFrame, iStart, iStart+pagesize+24); 143 aData = getContent(iStart, pagesize+24); 150 print_byte_range(iStart+24, pagesize, aData+24, 0); 168 iStart = 32 + (iFrame-1)*(pagesize+24); 289 pagesize = zPgSz[0]*256 + zPgSz[1]; 290 if( pagesize==0 ) pagesize = 1024; 291 printf("Pagesize: %d\n", pagesize) [all...] |
showjournal.c | 12 static int pageSize = 1024; 89 pageSize = 102 aData = read_content(pageSize+8, iOfst); 129 cnt = (fileSize - sectorSize)/(pageSize+8); 134 iOfst += pageSize+8;
|
/external/chromium_org/third_party/sqlite/src/test/ |
pagesize.test | 14 # $Id: pagesize.test,v 1.13 2008/08/26 21:07:27 drh Exp $ 27 do_test pagesize-1.1 { 31 do_test pagesize-1.2 { 35 do_test pagesize-1.3 { 43 do_test pagesize-1.4 { 52 do_test pagesize-1.5 { 59 do_test pagesize-1.6 { 65 do_test pagesize-1.7 { 71 do_test pagesize-1.8 { 82 do_test pagesize-2.$PGSZ.0.1 [all...] |
crash6.test | 72 set pagesize [expr 1024 << ($ii % 4)] 73 if {$pagesize>$::SQLITE_MAX_PAGE_SIZE} { 74 set pagesize $::SQLITE_MAX_PAGE_SIZE 77 execsql "pragma page_size = $pagesize" 79 } $pagesize
|
/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);
|
/system/extras/libpagemap/ |
pm_map.c | 47 usage.vss += map->proc->ker->pagesize; 67 usage.rss += (count >= 1) ? map->proc->ker->pagesize : (0); 68 usage.pss += (count >= 1) ? (map->proc->ker->pagesize / count) : (0); 69 usage.uss += (count == 1) ? (map->proc->ker->pagesize) : (0); 71 usage.swap += map->proc->ker->pagesize; 116 ws.vss += map->proc->ker->pagesize; 118 ws.rss += (count >= 1) ? (map->proc->ker->pagesize) : (0); 119 ws.pss += (count >= 1) ? (map->proc->ker->pagesize / count) : (0); 120 ws.uss += (count == 1) ? (map->proc->ker->pagesize) : (0);
|
/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/core/toolbox/ |
mkswap.c | 31 int pagesize; local 46 pagesize = getpagesize(); 49 if (swap_size < MIN_PAGES * pagesize) { 51 (MIN_PAGES * pagesize) >> 10); 63 sw_hdr.last_page = (swap_size / pagesize) - 1; 73 if (lseek(fd, pagesize - MAGIC_SWAP_HEADER_LEN, SEEK_SET) < 0) {
|
/external/chromium_org/third_party/WebKit/Source/wtf/ |
TCSystemAlloc.cpp | 68 static size_t pagesize = 0; variable 85 if (pagesize == 0) pagesize = getpagesize(); 86 if (alignment < pagesize) alignment = pagesize; 94 // Ask for extra memory if alignment > pagesize 96 if (alignment > pagesize) { 97 extra = alignment - pagesize; 99 Checked<size_t> mapSize = Checked<size_t>(size) + extra + 2 * pagesize; 108 mmap(result, pagesize, PROT_NONE, MAP_FIXED | MAP_PRIVATE | MAP_ANON, VM_TAG_FOR_TCMALLOC_MEMORY, 0) [all...] |
/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/chromium_org/third_party/angle/src/compiler/ |
PoolAlloc.cpp | 53 pageSize(growthIncrement), 64 if (pageSize < 4*1024) 65 pageSize = 4*1024; 71 currentPageOffset = pageSize; 161 currentPageOffset = pageSize; 228 if (allocationSize <= pageSize - currentPageOffset) { 239 if (allocationSize > pageSize - headerSkip) { 254 new(memory) tHeader(inUseList, (numBytesToAlloc + pageSize - 1) / pageSize); 257 currentPageOffset = pageSize; // make next allocation come from a new pag [all...] |
/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...] |
/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/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/chromium_org/base/process/ |
process_metrics_freebsd.cc | 100 int mib[2], pagesize; local 117 pagesize = getpagesize(); 119 return mem_total - (mem_free*pagesize) - (mem_inactive*pagesize);
|
/external/chromium_org/chrome/ |
empty_pdb_workaround.cc | 5 // This file is used to generate an empty .pdb -- with a 4K pagesize -- that we
|
/external/llvm/lib/Support/Unix/ |
Memory.inc | 91 static const size_t PageSize = process::get_self()->page_size(); 92 const size_t NumPages = (NumBytes+PageSize-1)/PageSize; 117 if (Start && Start % PageSize) 118 Start += PageSize - Start % PageSize; 120 void *Addr = ::mmap(reinterpret_cast<void*>(Start), PageSize*NumPages, 132 Result.Size = NumPages*PageSize; 184 size_t PageSize = process::get_self()->page_size(); 185 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));
|
/system/core/libutils/ |
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/chromium_org/third_party/tcmalloc/vendor/src/ |
system-alloc.cc | 119 static size_t pagesize = 0; variable 284 if (pagesize == 0) pagesize = getpagesize(); 285 if (alignment < pagesize) alignment = pagesize; 298 // Ask for extra memory if alignment > pagesize 300 if (alignment > pagesize) { 301 extra = alignment - pagesize; 368 if (pagesize == 0) pagesize = getpagesize() [all...] |
/external/chromium_org/third_party/tcmalloc/chromium/src/windows/ |
port.cc | 55 static int pagesize = 0; local 56 if (pagesize == 0) { 59 pagesize = std::max(system_info.dwPageSize, 62 return pagesize; 227 // Align on the pagesize boundary 228 const int pagesize = getpagesize(); local 229 if (alignment < pagesize) alignment = pagesize; 241 // We currently do not support alignments larger than the pagesize or 242 // alignments that are not multiples of the pagesize after being floored 260 static size_t pagesize = 0; local [all...] |