/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 | 49 int bsdiff(const uint8_t* old_buf, size_t oldsize, const uint8_t* new_buf, in bsdiff() argument 53 return bsdiff(old_buf, oldsize, new_buf, newsize, 0, &patch, in bsdiff() 57 int bsdiff(const uint8_t* old_buf, size_t oldsize, const uint8_t* new_buf, in bsdiff() argument 60 return bsdiff(old_buf, oldsize, new_buf, newsize, 0, patch, in bsdiff() 64 int bsdiff(const uint8_t* old_buf, size_t oldsize, const uint8_t* new_buf, in bsdiff() argument 82 local_sai = CreateSuffixArrayIndex(old_buf, oldsize); in bsdiff() 93 DiffEncoder diff_encoder(patch, old_buf, oldsize, new_buf, newsize); in bsdiff() 118 if((scsc+lastoffset<oldsize) && in bsdiff() 125 if((scan+lastoffset<oldsize) && in bsdiff() 143 for(i=0;(lastscan+i<scan)&&(lastpos+i<oldsize);) { in bsdiff()
|
D | bsdiff_main.cc | 63 size_t oldsize; in GenerateBsdiffFromFiles() local 64 uint8_t* old_buf = static_cast<uint8_t*>(MapFile(old_filename, &oldsize)); in GenerateBsdiffFromFiles() 72 munmap(old_buf, oldsize); in GenerateBsdiffFromFiles() 94 int ret = bsdiff::bsdiff(old_buf, oldsize, new_buf, newsize, in GenerateBsdiffFromFiles() 97 munmap(old_buf, oldsize); in GenerateBsdiffFromFiles()
|
/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/bsdiff/include/bsdiff/ |
D | bsdiff.h | 23 size_t oldsize, 31 size_t oldsize, 47 size_t oldsize,
|
/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/ltp/testcases/kernel/mem/mtest07/ |
D | mallocstress.c | 125 size_t oldsize = 5; in allocate_free() local 149 newsize = size + oldsize; in allocate_free() 150 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/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/f2fs-tools/fsck/ |
D | xattr.c | 193 int oldsize = ENTRY_SIZE(here); in f2fs_setxattr() local 196 last = (struct f2fs_xattr_entry *)((char *)last - oldsize); in f2fs_setxattr() 197 memset(last, 0, oldsize); in f2fs_setxattr()
|
/external/python/cpython3/Objects/ |
D | tupleobject.c | 847 Py_ssize_t oldsize; in _PyTuple_Resize() local 857 oldsize = Py_SIZE(v); in _PyTuple_Resize() 858 if (oldsize == newsize) in _PyTuple_Resize() 861 if (oldsize == 0) { in _PyTuple_Resize() 876 for (i = newsize; i < oldsize; i++) { in _PyTuple_Resize() 887 if (newsize > oldsize) in _PyTuple_Resize() 888 memset(&sv->ob_item[oldsize], 0, in _PyTuple_Resize() 889 sizeof(*sv->ob_item) * (newsize - oldsize)); in _PyTuple_Resize()
|
/external/oj-libjdwp/src/share/back/ |
D | commonRef.c | 329 int oldsize; in newCommonRef() local 335 oldsize = gdata->objectsByIDsize; in newCommonRef() 338 newsize = oldsize*HASH_EXPAND_SCALE; in newCommonRef() 342 for ( i = 0 ; i < oldsize ; i++ ) { in newCommonRef()
|
/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()
|
D | hash.c | 231 int oldsize, i; in xmlHashGrow() local 245 oldsize = table->size; in xmlHashGrow() 264 for (i = 0; i < oldsize; i++) { in xmlHashGrow() 273 for (i = 0; i < oldsize; i++) { in xmlHashGrow() 305 "xmlHashGrow : from %d to %d, %d elems\n", oldsize, size, nbElem); in xmlHashGrow()
|