Home
last modified time | relevance | path

Searched refs:newsize (Results 1 – 25 of 33) sorted by relevance

12

/external/bsdiff/
Dbsdiff.c142 static off_t matchlen(u_char *old,off_t oldsize,u_char *new,off_t newsize) in matchlen() argument
146 for(i=0;(i<oldsize)&&(i<newsize);i++) in matchlen()
153 u_char *new,off_t newsize,off_t st,off_t en,off_t *pos) in search() argument
158 x=matchlen(old+I[st],oldsize-I[st],new,newsize); in search()
159 y=matchlen(old+I[en],oldsize-I[en],new,newsize); in search()
171 if(memcmp(old+I[x],new,MIN(oldsize-I[x],newsize))<0) { in search()
172 return search(I,old,oldsize,new,newsize,x,en,pos); in search()
174 return search(I,old,oldsize,new,newsize,st,x,pos); in search()
200 off_t oldsize,newsize; in main() local
237 ((newsize=lseek(fd,0,SEEK_END))==-1) || in main()
[all …]
Dbspatch.c64 ssize_t oldsize,newsize; in main() local
107 newsize=offtin(header+24); in main()
108 if((bzctrllen<0) || (bzdatalen<0) || (newsize<0)) in main()
142 if((new=malloc(newsize+1))==NULL) err(1,NULL); in main()
145 while(newpos<newsize) { in main()
161 if(newpos+ctrl[0]>newsize) in main()
180 if(newpos+ctrl[1]>newsize) in main()
203 (write(fd,new,newsize)!=newsize) || (close(fd)==-1)) in main()
/external/icu/icu4c/source/tools/tzcode/
Dialloc.c14 register int oldsize, newsize; in icatalloc() local
16 newsize = (new == NULL) ? 0 : strlen(new); in icatalloc()
19 else if (newsize == 0) in icatalloc()
22 if ((result = realloc(old, oldsize + newsize + 1)) != NULL) in icatalloc()
/external/mesa3d/src/gallium/auxiliary/util/
Du_dynarray.h64 util_dynarray_resize(struct util_dynarray *buf, unsigned newsize) in util_dynarray_resize() argument
67 if(newsize > buf->capacity) in util_dynarray_resize()
70 if(newsize > newcap) in util_dynarray_resize()
71 newcap = newsize; in util_dynarray_resize()
77 buf->size = newsize; in util_dynarray_resize()
/external/apache-xml/src/main/java/org/apache/xml/utils/
DSuballocatedIntVector.java166 int newsize=index+m_numblocks; in addElement() local
167 int[][] newMap=new int[newsize][]; in addElement()
206 int newsize=index+m_numblocks; in addElements() local
207 int[][] newMap=new int[newsize][]; in addElements()
264 int newsize=index+m_numblocks; in insertElementAt() local
265 int[][] newMap=new int[newsize][]; in insertElementAt()
398 int newsize=index+m_numblocks; in setElementAt() local
399 int[][] newMap=new int[newsize][]; in setElementAt()
/external/tinyxml/
Dtinystr.cpp74 size_type newsize = length() + len; in append() local
75 if (newsize > capacity()) in append()
77 reserve (newsize + capacity()); in append()
80 set_size(newsize); in append()
/external/sfntly/cpp/src/test/tinyxml/
Dtinystr.cpp70 size_type newsize = length() + len; in append() local
71 if (newsize > capacity()) in append()
73 reserve (newsize + capacity()); in append()
76 set_size(newsize); in append()
/external/libopus/src/
Dopus_demo.c258 int random_framesize=0, newsize=0, delayed_celt=0; in main() local
626 frame_size = newsize; in main()
630 newsize = rand()%6; in main()
631 switch(newsize) in main()
633 case 0: newsize=sampling_rate/400; break; in main()
634 case 1: newsize=sampling_rate/200; break; in main()
635 case 2: newsize=sampling_rate/100; break; in main()
636 case 3: newsize=sampling_rate/50; break; in main()
637 case 4: newsize=sampling_rate/25; break; in main()
638 case 5: newsize=3*sampling_rate/50; break; in main()
[all …]
/external/e2fsprogs/resize/
Dextent.c84 __u64 newsize; in ext2fs_add_extent_entry() local
88 newsize = extent->size + 100; in ext2fs_add_extent_entry()
92 newsize, &extent->list); in ext2fs_add_extent_entry()
95 extent->size = newsize; in ext2fs_add_extent_entry()
/external/valgrind/none/tests/linux/
Dmremap2.c127 int newsize = newsizes[nsi] * PAGE; in main() local
146 syscall(__NR_mremap, src, 20*PAGE, newsize, flags, dst, 0 ); in main()
162 tidylen = newsize; in main()
/external/bison/lib/
Dvbitset.c59 bitset_windex newsize; in vbitset_resize() local
65 newsize = VBITSET_N_WORDS (n_bits); in vbitset_resize()
67 if (oldsize < newsize) in vbitset_resize()
73 if (newsize > VBITSET_ASIZE (src)) in vbitset_resize()
81 size = newsize; in vbitset_resize()
83 size = newsize + newsize / 4; in vbitset_resize()
91 (newsize - oldsize) * sizeof (bitset_word)); in vbitset_resize()
92 VBITSET_SIZE (src) = newsize; in vbitset_resize()
98 if ((oldsize - newsize) >= oldsize / 2) in vbitset_resize()
101 = realloc (VBITSET_WORDS (src), newsize * sizeof (bitset_word)); in vbitset_resize()
[all …]
Debitset.c126 bitset_windex newsize; in ebitset_resize() local
132 newsize = EBITSET_N_ELTS (n_bits); in ebitset_resize()
134 if (oldsize < newsize) in ebitset_resize()
140 if (newsize > EBITSET_ASIZE (src)) in ebitset_resize()
148 size = newsize; in ebitset_resize()
150 size = newsize + newsize / 4; in ebitset_resize()
158 (newsize - oldsize) * sizeof (ebitset_elt *)); in ebitset_resize()
164 if ((oldsize - newsize) >= oldsize / 2) in ebitset_resize()
167 = realloc (EBITSET_ELTS (src), newsize * sizeof (ebitset_elt *)); in ebitset_resize()
168 EBITSET_ASIZE (src) = newsize; in ebitset_resize()
/external/valgrind/callgrind/
Dfn.c666 Int i, newsize; in resize_fn_array() local
668 newsize = current_fn_active.size; in resize_fn_array()
669 while (newsize <= CLG_(stat).distinct_fns) newsize *=2; in resize_fn_array()
672 current_fn_active.size, newsize); in resize_fn_array()
674 new_array = (UInt*) CLG_MALLOC("cl.fn.rfa.1", newsize * sizeof(UInt)); in resize_fn_array()
677 while(i<newsize) in resize_fn_array()
681 current_fn_active.size = newsize; in resize_fn_array()
/external/vboot_reference/firmware/2lib/
D2common.c93 uint32_t newsize) in vb2_workbuf_realloc() argument
101 return vb2_workbuf_alloc(wb, newsize); in vb2_workbuf_realloc()
/external/zopfli/src/zopflipng/
Dzopflipng_bin.cc131 void PrintResultSize(const char* label, size_t oldsize, size_t newsize) { in PrintResultSize() argument
133 label, (int) newsize, (int) newsize / 1024, newsize * 100.0 / oldsize); in PrintResultSize()
/external/boringssl/src/crypto/bn/
Dctx.c214 unsigned int newsize = in BN_STACK_push() local
216 unsigned int *newitems = OPENSSL_malloc(newsize * sizeof(unsigned int)); in BN_STACK_push()
225 st->size = newsize; in BN_STACK_push()
/external/llvm/include/llvm/ADT/
Dilist.h645 void resize(size_type newsize, NodeTy val) {
648 for ( ; i != this->end() && len < newsize; ++i, ++len) /* empty*/ ;
650 if (len == newsize)
653 insert(this->end(), newsize - len, val);
655 void resize(size_type newsize) { resize(newsize, NodeTy()); }
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_addrhashmap.h265 uptr newsize = oldsize * 2; in acquire() local
266 AddBucket *add1 = (AddBucket*)InternalAlloc(newsize); in acquire()
267 internal_memset(add1, 0, newsize); in acquire()
268 add1->cap = (newsize - sizeof(*add)) / sizeof(add->cells[0]) + 1; in acquire()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_tgsi.c64 unsigned newsize = emit->size * 2; in svga_shader_expand() local
67 new_buf = REALLOC(emit->buf, emit->size, newsize); in svga_shader_expand()
78 emit->size = newsize; in svga_shader_expand()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DStringTokenizer.java493 int newsize = originalsize + TOKEN_SIZE_;
494 m_tokenStart_ = new int[newsize];
495 m_tokenLimit_ = new int[newsize];
/external/libcxx/src/
Dios.cpp326 size_t newsize = sizeof(long) * rhs.__iarray_size_; in copyfmt() local
327 new_longs.reset(static_cast<long*>(malloc(newsize))); in copyfmt()
335 size_t newsize = sizeof(void*) * rhs.__parray_size_; in copyfmt() local
336 new_pointers.reset(static_cast<void**>(malloc(newsize))); in copyfmt()
/external/chromium-trace/trace-viewer/third_party/Paste/tests/
Dtest_fileapp.py130 newsize = fileapp.CACHE_SIZE + len(content)+12
131 assert newsize == int(res.header('content-length'))
132 assert newsize == len(res.body)
/external/vboot_reference/firmware/2lib/include/
D2common.h108 uint32_t newsize);
/external/jemalloc/src/
Darena.c1592 size_t oldsize, size_t newsize) in arena_run_trim_head() argument
1596 size_t head_npages = (oldsize - newsize) >> LG_PAGE; in arena_run_trim_head()
1599 assert(oldsize > newsize); in arena_run_trim_head()
1608 arena_mapbits_large_set(chunk, pageind, oldsize-newsize, flag_dirty); in arena_run_trim_head()
1611 UNUSED size_t tail_npages = newsize >> LG_PAGE; in arena_run_trim_head()
1617 arena_mapbits_large_set(chunk, pageind+head_npages, newsize, in arena_run_trim_head()
1625 size_t oldsize, size_t newsize, bool dirty) in arena_run_trim_tail() argument
1629 size_t head_npages = newsize >> LG_PAGE; in arena_run_trim_tail()
1634 assert(oldsize > newsize); in arena_run_trim_tail()
1643 arena_mapbits_large_set(chunk, pageind, newsize, flag_dirty); in arena_run_trim_tail()
[all …]
/external/e2fsprogs/e2fsck/
Dprofile.c986 size_t newsize; in add_data_to_buffer() local
989 newsize = b->max + (b->max >> 1) + len + 1024; in add_data_to_buffer()
990 newptr = realloc(b->base, newsize); in add_data_to_buffer()
996 b->max = newsize; in add_data_to_buffer()

12