Home
last modified time | relevance | path

Searched refs:oldsize (Results 1 – 25 of 51) sorted by relevance

123

/external/jemalloc/src/
Dhuge.c152 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 …]
Darena.c874 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/
Dbsdiff.cc47 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 …]
Dbspatch.cc308 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/
Dialloc.c14 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/
Dmalloc.c133 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/
Dpadimg.pl24 my $oldsize = -s $filename;
25 my $padsize = ( ( -$oldsize ) % $blksize );
26 my $newsize = ( $oldsize + $padsize );
30 $filename, $oldsize, $newsize, $padsize, $byte;
/external/dtc/tests/
Dopen_pack.c36 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()
Ddel_property.c38 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()
Dmangle-layout.c67 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()
Ddel_node.c37 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/
Djemalloc_internal.h1013 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 …]
Dhuge.h15 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,
Djemalloc_internal.h.in1013 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/
Devport.c214 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/
Dmallocstress.c167 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/
D2common.c92 uint32_t oldsize, in vb2_workbuf_realloc() argument
100 vb2_workbuf_free(wb, oldsize); in vb2_workbuf_realloc()
/external/f2fs-tools/fsck/
Dxattr.c197 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/
Dtupleobject.c842 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/
Debitset.c125 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()
Dvbitset.c58 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/
Dbsdiff.h25 off_t oldsize,
/external/selinux/libselinux/src/
Dload_policy.c245 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/
Dcallstack.c91 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/
Ddict.c662 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()

123