/external/jemalloc/src/ |
D | huge.c | 152 huge_ralloc_no_move_similar(tsdn_t *tsdn, void *ptr, size_t oldsize, in huge_ralloc_no_move_similar() argument 163 <= oldsize; usize = usize_next) in huge_ralloc_no_move_similar() 166 if (oldsize == usize) in huge_ralloc_no_move_similar() 174 if (oldsize > usize) { in huge_ralloc_no_move_similar() 175 size_t sdiff = oldsize - usize; in huge_ralloc_no_move_similar() 182 &chunk_hooks, ptr, CHUNK_CEILING(oldsize), usize, in huge_ralloc_no_move_similar() 198 arena_chunk_ralloc_huge_similar(tsdn, arena, ptr, oldsize, usize); in huge_ralloc_no_move_similar() 201 if (oldsize < usize) { in huge_ralloc_no_move_similar() 204 memset((void *)((uintptr_t)ptr + oldsize), 0, in huge_ralloc_no_move_similar() 205 usize - oldsize); in huge_ralloc_no_move_similar() [all …]
|
D | arena.c | 874 arena_huge_ralloc_stats_update(arena_t *arena, size_t oldsize, size_t usize) in arena_huge_ralloc_stats_update() argument 877 arena_huge_dalloc_stats_update(arena, oldsize); in arena_huge_ralloc_stats_update() 882 arena_huge_ralloc_stats_update_undo(arena_t *arena, size_t oldsize, in arena_huge_ralloc_stats_update_undo() argument 886 arena_huge_dalloc_stats_update_undo(arena, oldsize); in arena_huge_ralloc_stats_update_undo() 990 size_t oldsize, size_t usize) in arena_chunk_ralloc_huge_similar() argument 993 assert(CHUNK_CEILING(oldsize) == CHUNK_CEILING(usize)); in arena_chunk_ralloc_huge_similar() 994 assert(oldsize != usize); in arena_chunk_ralloc_huge_similar() 998 arena_huge_ralloc_stats_update(arena, oldsize, usize); in arena_chunk_ralloc_huge_similar() 999 if (oldsize < usize) in arena_chunk_ralloc_huge_similar() 1000 arena_nactive_add(arena, (usize - oldsize) >> LG_PAGE); in arena_chunk_ralloc_huge_similar() [all …]
|
/external/bsdiff/ |
D | bsdiff.cc | 47 static off_t matchlen(const u_char* old, off_t oldsize, const u_char* new_buf, in matchlen() argument 51 for(i=0;(i<oldsize)&&(i<newsize);i++) in matchlen() 62 static off_t search(saidx_t* I, const u_char* old, off_t oldsize, in search() argument 68 x=matchlen(old+I[st],oldsize-I[st],new_buf,newsize); in search() 69 y=matchlen(old+I[en],oldsize-I[en],new_buf,newsize); in search() 81 if(memcmp(old+I[x],new_buf,std::min(oldsize-I[x],newsize))<=0) { in search() 82 return search(I,old,oldsize,new_buf,newsize,x,en,pos); in search() 84 return search(I,old,oldsize,new_buf,newsize,st,x,pos); in search() 110 off_t oldsize,newsize; in bsdiff() local 115 ((oldsize=lseek(fd,0,SEEK_END))==-1) || in bsdiff() [all …]
|
D | bspatch.cc | 308 uint64_t oldsize, newsize; in bspatch() local 354 if (!old_file->GetSize(&oldsize)) { in bspatch() 405 if ((old_file_pos = oldpos + ctrl[0]) > oldsize) in bspatch() 406 old_file_pos = oldsize; in bspatch() 439 if (oldpos > static_cast<int64_t>(oldsize)) { in bspatch() 442 ret = ReadBZ2AndWriteAll(new_file, &dstream, oldpos - oldsize, in bspatch()
|
/external/icu/icu4c/source/tools/tzcode/ |
D | ialloc.c | 14 register int oldsize, newsize; in icatalloc() local 18 oldsize = 0; in icatalloc() 21 else oldsize = strlen(old); in icatalloc() 22 if ((result = realloc(old, oldsize + newsize + 1)) != NULL) in icatalloc() 24 (void) strcpy(result + oldsize, new); in icatalloc()
|
/external/syslinux/core/mem/ |
D | malloc.c | 133 size_t newsize, oldsize, xsize; in bios_realloc() local 155 oldsize = ARENA_SIZE_GET(ah->a.attrs); in bios_realloc() 160 if (oldsize >= newsize && newsize >= (oldsize >> 2) && in bios_realloc() 161 oldsize - newsize < 4096) { in bios_realloc() 165 xsize = oldsize; in bios_realloc() 170 ARENA_SIZE_GET(nah->a.attrs) + oldsize >= newsize) { in bios_realloc() 208 if (newsize > oldsize) { in bios_realloc() 228 oldsize -= sizeof(struct arena_header); in bios_realloc() 231 memcpy(newptr, ptr, min(size, oldsize)); in bios_realloc()
|
/external/syslinux/gpxe/src/util/ |
D | padimg.pl | 24 my $oldsize = -s $filename; 25 my $padsize = ( ( -$oldsize ) % $blksize ); 26 my $newsize = ( $oldsize + $padsize ); 30 $filename, $oldsize, $newsize, $padsize, $byte;
|
/external/dtc/tests/ |
D | open_pack.c | 36 int oldsize, bufsize, packsize; in main() local 45 oldsize = fdt_totalsize(fdt); in main() 47 bufsize = oldsize * 2; in main() 69 oldsize, bufsize, packsize); in main()
|
D | del_property.c | 38 int oldsize, delsize, newsize; in main() local 45 oldsize = fdt_totalsize(fdt); in main() 84 oldsize, delsize, newsize); in main() 86 if (newsize >= oldsize) in main()
|
D | mangle-layout.c | 67 int align, size, oldsize; in add_block() local 97 oldsize = buf->size; in add_block() 98 offset = ALIGN(oldsize, align); in add_block() 100 memset(buf->buf + oldsize, 0, offset - oldsize); in add_block()
|
D | del_node.c | 37 int oldsize, delsize, newsize; in main() local 44 oldsize = fdt_totalsize(fdt); in main() 117 oldsize, delsize, newsize); in main() 119 if (newsize >= oldsize) in main()
|
/external/jemalloc/include/jemalloc/internal/ |
D | jemalloc_internal.h | 1013 void *iralloct_realign(tsd_t *tsd, void *ptr, size_t oldsize, size_t size, 1016 void *iralloct(tsd_t *tsd, void *ptr, size_t oldsize, size_t size, 1018 void *iralloc(tsd_t *tsd, void *ptr, size_t oldsize, size_t size, 1020 bool ixalloc(tsdn_t *tsdn, void *ptr, size_t oldsize, size_t size, 1203 iralloct_realign(tsd_t *tsd, void *ptr, size_t oldsize, size_t size, in iralloct_realign() argument 1229 copysize = (size < oldsize) ? size : oldsize; in iralloct_realign() 1231 isqalloc(tsd, ptr, oldsize, tcache, true); in iralloct_realign() 1236 iralloct(tsd_t *tsd, void *ptr, size_t oldsize, size_t size, size_t alignment, in iralloct() argument 1249 return (iralloct_realign(tsd, ptr, oldsize, size, 0, alignment, in iralloct() 1253 return (arena_ralloc(tsd, arena, ptr, oldsize, size, alignment, zero, in iralloct() [all …]
|
D | huge.h | 15 bool huge_ralloc_no_move(tsdn_t *tsdn, void *ptr, size_t oldsize, 17 void *huge_ralloc(tsd_t *tsd, arena_t *arena, void *ptr, size_t oldsize,
|
D | jemalloc_internal.h.in | 1013 void *iralloct_realign(tsd_t *tsd, void *ptr, size_t oldsize, size_t size, 1016 void *iralloct(tsd_t *tsd, void *ptr, size_t oldsize, size_t size, 1018 void *iralloc(tsd_t *tsd, void *ptr, size_t oldsize, size_t size, 1020 bool ixalloc(tsdn_t *tsdn, void *ptr, size_t oldsize, size_t size, 1203 iralloct_realign(tsd_t *tsd, void *ptr, size_t oldsize, size_t size, argument 1229 copysize = (size < oldsize) ? size : oldsize; 1231 isqalloc(tsd, ptr, oldsize, tcache, true); 1236 iralloct(tsd_t *tsd, void *ptr, size_t oldsize, size_t size, size_t alignment, argument 1249 return (iralloct_realign(tsd, ptr, oldsize, size, 0, alignment, 1253 return (arena_ralloc(tsd, arena, ptr, oldsize, size, alignment, zero, [all …]
|
/external/libevent/ |
D | evport.c | 214 int oldsize = epdp->ed_nevents; in grow() local 215 int newsize = factor * oldsize; in grow() 224 memset((char*) (epdp->ed_fds + oldsize), 0, in grow() 225 (newsize - oldsize)*sizeof(struct fd_info)); in grow()
|
/external/ltp/testcases/kernel/mem/mtest07/ |
D | mallocstress.c | 167 size_t oldsize = 5; /* remember size for fibannoci series */ in allocate_free() local 198 newsize = size + oldsize; in allocate_free() 199 oldsize = size; in allocate_free()
|
/external/vboot_reference/firmware/2lib/ |
D | 2common.c | 92 uint32_t oldsize, in vb2_workbuf_realloc() argument 100 vb2_workbuf_free(wb, oldsize); in vb2_workbuf_realloc()
|
/external/f2fs-tools/fsck/ |
D | xattr.c | 197 int oldsize = ENTRY_SIZE(here); in f2fs_setxattr() local 200 last = (struct f2fs_xattr_entry *)((char *)last - oldsize); in f2fs_setxattr() 201 memset(last, 0, oldsize); in f2fs_setxattr()
|
/external/python/cpython2/Objects/ |
D | tupleobject.c | 842 Py_ssize_t oldsize; in _PyTuple_Resize() local 852 oldsize = Py_SIZE(v); in _PyTuple_Resize() 853 if (oldsize == newsize) in _PyTuple_Resize() 856 if (oldsize == 0) { in _PyTuple_Resize() 871 for (i = newsize; i < oldsize; i++) { in _PyTuple_Resize() 882 if (newsize > oldsize) in _PyTuple_Resize() 883 memset(&sv->ob_item[oldsize], 0, in _PyTuple_Resize() 884 sizeof(*sv->ob_item) * (newsize - oldsize)); in _PyTuple_Resize()
|
/external/bison/lib/ |
D | ebitset.c | 125 bitset_windex oldsize; in ebitset_resize() local 131 oldsize = EBITSET_SIZE (src); in ebitset_resize() 134 if (oldsize < newsize) in ebitset_resize() 147 if (oldsize == 0) in ebitset_resize() 157 memset (EBITSET_ELTS (src) + oldsize, 0, in ebitset_resize() 158 (newsize - oldsize) * sizeof (ebitset_elt *)); in ebitset_resize() 164 if ((oldsize - newsize) >= oldsize / 2) in ebitset_resize()
|
D | vbitset.c | 58 bitset_windex oldsize; in vbitset_resize() local 64 oldsize = VBITSET_SIZE (src); in vbitset_resize() 67 if (oldsize < newsize) in vbitset_resize() 80 if (oldsize == 0) in vbitset_resize() 90 memset (VBITSET_WORDS (src) + oldsize, 0, in vbitset_resize() 91 (newsize - oldsize) * sizeof (bitset_word)); in vbitset_resize() 98 if ((oldsize - newsize) >= oldsize / 2) in vbitset_resize()
|
/external/bsdiff/include/bsdiff/ |
D | bsdiff.h | 25 off_t oldsize,
|
/external/selinux/libselinux/src/ |
D | load_policy.c | 245 size_t oldsize = size; in selinux_mkload_policy() local 246 rc = genusers(olddata, oldsize, selinux_users_path(), in selinux_mkload_policy() 251 size = oldsize; in selinux_mkload_policy()
|
/external/valgrind/callgrind/ |
D | callstack.c | 91 Int oldsize; in ensure_stack_size() local 96 oldsize = cs->size; in ensure_stack_size() 104 for(i=oldsize; i<cs->size; i++) in ensure_stack_size()
|
/external/libxml2/ |
D | dict.c | 662 size_t oldsize, i; in xmlDictGrow() local 682 oldsize = dict->size; in xmlDictGrow() 686 if (oldsize == MIN_DICT_SIZE) in xmlDictGrow() 703 for (i = 0; i < oldsize; i++) { in xmlDictGrow() 741 for (i = 0; i < oldsize; i++) { in xmlDictGrow() 779 "xmlDictGrow : from %lu to %lu, %u elems\n", oldsize, size, nbElem); in xmlDictGrow()
|