/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() 117 for(;scsc<scan+len && scsc+lastoffset<oldsize;scsc++) in bsdiff() 124 if((scan+lastoffset<oldsize) && in bsdiff() 142 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() 93 int ret = bsdiff::bsdiff(old_buf, oldsize, new_buf, newsize, in GenerateBsdiffFromFiles() 96 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/jemalloc_new/include/jemalloc/internal/ |
D | jemalloc_internal_inlines_c.h | 135 iralloct_realign(tsdn_t *tsdn, void *ptr, size_t oldsize, size_t size, in iralloct_realign() argument 166 copysize = (size < oldsize) ? size : oldsize; in iralloct_realign() 168 isdalloct(tsdn, ptr, oldsize, tcache, NULL, true); in iralloct_realign() 173 iralloct(tsdn_t *tsdn, void *ptr, size_t oldsize, size_t size, size_t alignment, in iralloct() argument 186 return iralloct_realign(tsdn, ptr, oldsize, size, 0, alignment, in iralloct() 190 return arena_ralloc(tsdn, arena, ptr, oldsize, size, alignment, zero, in iralloct() 195 iralloc(tsd_t *tsd, void *ptr, size_t oldsize, size_t size, size_t alignment, in iralloc() argument 197 return iralloct(tsd_tsdn(tsd), ptr, oldsize, size, alignment, zero, in iralloc() 202 ixalloc(tsdn_t *tsdn, void *ptr, size_t oldsize, size_t size, size_t extra, in ixalloc() argument 215 return arena_ralloc_no_move(tsdn, ptr, oldsize, size, extra, zero); in ixalloc()
|
D | arena_externs.h | 36 extent_t *extent, size_t oldsize); 38 extent_t *extent, size_t oldsize); 65 bool arena_ralloc_no_move(tsdn_t *tsdn, void *ptr, size_t oldsize, size_t size, 67 void *arena_ralloc(tsdn_t *tsdn, arena_t *arena, void *ptr, size_t oldsize,
|
/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/cpython3/Objects/ |
D | tupleobject.c | 859 Py_ssize_t oldsize; in _PyTuple_Resize() local 869 oldsize = Py_SIZE(v); in _PyTuple_Resize() 870 if (oldsize == newsize) in _PyTuple_Resize() 873 if (oldsize == 0) { in _PyTuple_Resize() 888 for (i = newsize; i < oldsize; i++) { in _PyTuple_Resize() 899 if (newsize > oldsize) in _PyTuple_Resize() 900 memset(&sv->ob_item[oldsize], 0, in _PyTuple_Resize() 901 sizeof(*sv->ob_item) * (newsize - oldsize)); in _PyTuple_Resize()
|
/external/python/cpython2/Objects/ |
D | tupleobject.c | 839 Py_ssize_t oldsize; in _PyTuple_Resize() local 849 oldsize = Py_SIZE(v); in _PyTuple_Resize() 850 if (oldsize == newsize) in _PyTuple_Resize() 853 if (oldsize == 0) { in _PyTuple_Resize() 868 for (i = newsize; i < oldsize; i++) { in _PyTuple_Resize() 879 if (newsize > oldsize) in _PyTuple_Resize() 880 memset(&sv->ob_item[oldsize], 0, in _PyTuple_Resize() 881 sizeof(*sv->ob_item) * (newsize - oldsize)); in _PyTuple_Resize()
|
/external/f2fs-tools/fsck/ |
D | xattr.c | 196 int oldsize = ENTRY_SIZE(here); in f2fs_setxattr() local 199 last = (struct f2fs_xattr_entry *)((char *)last - oldsize); in f2fs_setxattr() 200 memset(last, 0, oldsize); in f2fs_setxattr()
|
/external/oj-libjdwp/src/share/back/ |
D | commonRef.c | 405 int oldsize; in newCommonRef() local 411 oldsize = gdata->objectsByIDsize; in newCommonRef() 414 newsize = oldsize*HASH_EXPAND_SCALE; in newCommonRef() 418 for ( i = 0 ; i < oldsize ; i++ ) { in newCommonRef()
|
/external/u-boot/common/ |
D | dlmalloc.c | 1655 INTERNAL_SIZE_T oldsize; /* its size */ local 1693 newsize = oldsize = chunksize(oldp); 1706 if(oldsize - SIZE_SZ >= nb) return oldmem; /* do nothing */ 1711 MALLOC_COPY(newmem, oldmem, oldsize - 2*SIZE_SZ); 1719 if ((long)(oldsize) < (long)(nb)) 1724 next = chunk_at_offset(oldp, oldsize); 1776 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ); 1792 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ); 1804 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ); 1827 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
|
/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/jemalloc_new/src/ |
D | arena.c | 1586 arena_ralloc_no_move(tsdn_t *tsdn, void *ptr, size_t oldsize, size_t size, in arena_ralloc_no_move() argument 1598 if (likely(oldsize <= SMALL_MAXCLASS && usize_min <= SMALL_MAXCLASS)) { in arena_ralloc_no_move() 1603 assert(bin_infos[sz_size2index(oldsize)].reg_size == in arena_ralloc_no_move() 1604 oldsize); in arena_ralloc_no_move() 1606 sz_size2index(oldsize)) && (size > oldsize || usize_max < in arena_ralloc_no_move() 1607 oldsize)) { in arena_ralloc_no_move() 1613 } else if (oldsize >= LARGE_MINCLASS && usize_max >= LARGE_MINCLASS) { in arena_ralloc_no_move() 1636 arena_ralloc(tsdn_t *tsdn, arena_t *arena, void *ptr, size_t oldsize, in arena_ralloc() argument 1645 if (!arena_ralloc_no_move(tsdn, ptr, oldsize, usize, 0, zero)) { in arena_ralloc() 1650 if (oldsize >= LARGE_MINCLASS && usize >= LARGE_MINCLASS) { in arena_ralloc() [all …]
|
/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()
|