/external/bsdiff/ |
D | bsdiff.c | 142 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 …]
|
D | bspatch.c | 64 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() 156 if(newpos+ctrl[0]>newsize) in main() 175 if(newpos+ctrl[1]>newsize) in main() 198 (write(fd,new,newsize)!=newsize) || (close(fd)==-1)) in main()
|
/external/bluetooth/bluez/tools/ |
D | parser.c | 293 int newsize, i; in yygrowstack() local 297 if ((newsize = yystacksize) == 0) in yygrowstack() 298 newsize = YYINITSTACKSIZE; in yygrowstack() 299 else if (newsize >= YYMAXDEPTH) in yygrowstack() 301 else if ((newsize *= 2) > YYMAXDEPTH) in yygrowstack() 302 newsize = YYMAXDEPTH; in yygrowstack() 306 ? (short *)realloc(yyss, newsize * sizeof(*newss)) in yygrowstack() 307 : (short *)malloc(newsize * sizeof(*newss)); in yygrowstack() 314 ? (YYSTYPE *)realloc(yyvs, newsize * sizeof(*newvs)) in yygrowstack() 315 : (YYSTYPE *)malloc(newsize * sizeof(*newvs)); in yygrowstack() [all …]
|
/external/chromium/third_party/icu/source/tools/tzcode/ |
D | ialloc.c | 51 register int oldsize, newsize; local 53 newsize = (new == NULL) ? 0 : strlen(new); 56 else if (newsize == 0) 59 if ((result = irealloc(old, oldsize + newsize + 1)) != NULL)
|
/external/icu4c/tools/tzcode/ |
D | ialloc.c | 51 register int oldsize, newsize; local 53 newsize = (new == NULL) ? 0 : strlen(new); 56 else if (newsize == 0) 59 if ((result = irealloc(old, oldsize + newsize + 1)) != NULL)
|
/external/tinyxml/ |
D | tinystr.cpp | 74 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/dropbear/ |
D | buffer.c | 81 void buf_resize(buffer *buf, unsigned int newsize) { in buf_resize() argument 83 if (newsize > BUF_MAX_SIZE) { in buf_resize() 87 buf->data = m_realloc(buf->data, newsize); in buf_resize() 88 buf->size = newsize; in buf_resize() 89 buf->len = MIN(newsize, buf->len); in buf_resize() 90 buf->pos = MIN(newsize, buf->pos); in buf_resize()
|
D | buffer.h | 43 void buf_resize(buffer *buf, unsigned int newsize);
|
/external/bison/lib/ |
D | vbitset.c | 59 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 …]
|
D | ebitset.c | 126 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/e2fsprogs/resize/ |
D | extent.c | 84 int 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/chromium/third_party/libevent/ |
D | evport.c | 239 int newsize = factor * oldsize; in grow() local 244 tmp = realloc(epdp->ed_fds, sizeof(struct fd_info) * newsize); in grow() 249 (newsize - oldsize)*sizeof(struct fd_info)); in grow() 250 epdp->ed_nevents = newsize; in grow()
|
/external/openssl/crypto/bn/ |
D | bn_ctx.c | 335 unsigned int newsize = (st->size ? in BN_STACK_push() local 337 unsigned int *newitems = OPENSSL_malloc(newsize * in BN_STACK_push() 345 st->size = newsize; in BN_STACK_push()
|
/external/skia/src/ports/ |
D | SkImageRef_ashmem.cpp | 20 size_t newsize = (size + mask) & ~mask; in roundToPageSize() local 22 return newsize; in roundToPageSize()
|
/external/e2fsprogs/e2fsck/ |
D | profile.c | 982 size_t newsize; in add_data_to_buffer() local 985 newsize = b->max + (b->max >> 1) + len + 1024; in add_data_to_buffer() 986 newptr = realloc(b->base, newsize); in add_data_to_buffer() 992 b->max = newsize; in add_data_to_buffer()
|
/external/libffi/src/ |
D | dlmalloc.c | 1059 void* mspace_realloc(mspace msp, void* mem, size_t newsize); 3610 size_t newsize = sp->size - extra; in sys_trim() local 3612 if ((CALL_MREMAP(sp->base, sp->size, newsize, 0) != MFAIL) || in sys_trim() 3613 (CALL_MUNMAP(sp->base + newsize, extra) == 0)) { in sys_trim() 3803 size_t newsize = oldsize + m->topsize; in internal_realloc() local 3804 size_t newtopsize = newsize - nb; in internal_realloc() 3886 size_t newsize = chunksize(p) - leadsize; in internal_memalign() local 3890 newp->head = (newsize|CINUSE_BIT); in internal_memalign() 3893 set_inuse(m, newp, newsize); in internal_memalign()
|
/external/qemu/distrib/sdl-1.2.12/src/stdlib/ |
D | SDL_malloc.c | 1103 void* mspace_realloc(mspace msp, void* mem, size_t newsize); 3620 size_t newsize = sp->size - extra; in sys_trim() local 3622 if ((CALL_MREMAP(sp->base, sp->size, newsize, 0) != MFAIL) || in sys_trim() 3623 (CALL_MUNMAP(sp->base + newsize, extra) == 0)) { in sys_trim() 3813 size_t newsize = oldsize + m->topsize; in internal_realloc() local 3814 size_t newtopsize = newsize - nb; in internal_realloc() 3896 size_t newsize = chunksize(p) - leadsize; in internal_memalign() local 3900 newp->head = (newsize|CINUSE_BIT); in internal_memalign() 3903 set_inuse(m, newp, newsize); in internal_memalign()
|
/external/icu4c/i18n/ |
D | ucol.cpp | 3394 int32_t newsize = 0; in ucol_prv_getSpecialPrevCE() local 3396 newsize = (int32_t)(source->pos - source->string + 1); in ucol_prv_getSpecialPrevCE() 3398 newsize = 4 * UCOL_MAX_BUFFER; in ucol_prv_getSpecialPrevCE() 3401 (newsize + UCOL_MAX_BUFFER)); in ucol_prv_getSpecialPrevCE() 3407 UCharOffset = strbuffer + newsize; in ucol_prv_getSpecialPrevCE()
|
/external/chromium/third_party/icu/source/i18n/ |
D | ucol.cpp | 3528 int32_t newsize = 0; in ucol_prv_getSpecialPrevCE() local 3530 newsize = source->pos - source->string + 1; in ucol_prv_getSpecialPrevCE() 3532 newsize = 4 * UCOL_MAX_BUFFER; in ucol_prv_getSpecialPrevCE() 3535 (newsize + UCOL_MAX_BUFFER)); in ucol_prv_getSpecialPrevCE() 3541 UCharOffset = strbuffer + newsize; in ucol_prv_getSpecialPrevCE()
|