/external/icu4c/tools/tzcode/ |
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/webkit/Source/ThirdParty/ANGLE/src/compiler/preprocessor/ |
memory.h | 53 extern void *mem_Realloc(MemoryPool *p, void *old, size_t oldsize, size_t newsize);
|
/bionic/libc/stdio/ |
fgetln.c | 47 __slbexpand(FILE *fp, size_t newsize) 52 ++newsize; 54 if ((size_t)fp->_lb._size >= newsize) 56 if ((p = realloc(fp->_lb._base, newsize)) == NULL) 59 fp->_lb._size = newsize;
|
/external/tinyxml/ |
tinystr.cpp | 74 size_type newsize = length() + len; local 75 if (newsize > capacity()) 77 reserve (newsize + capacity()); 80 set_size(newsize);
|
/frameworks/base/core/java/android/text/ |
PackedObjectVector.java | 112 int newsize = size() + 1; local 113 newsize = ArrayUtils.idealIntArraySize(newsize * mColumns) / mColumns; 114 Object[] newvalues = new Object[newsize * mColumns]; 119 System.arraycopy(mValues, (mRows - after) * mColumns, newvalues, (newsize - after) * mColumns, after * mColumns); 121 mRowGapLength += newsize - mRows; 122 mRows = newsize;
|
PackedIntVector.java | 255 int newsize = size() + 1; local 256 newsize = ArrayUtils.idealIntArraySize(newsize * columns) / columns; 257 int[] newvalues = new int[newsize * columns]; 267 newvalues, (newsize - after) * columns, 273 valuegap[i] += newsize - mRows; 281 mRowGapLength += newsize - mRows; 282 mRows = newsize;
|
/external/bsdiff/ |
bspatch.c | 64 ssize_t oldsize,newsize; local 107 newsize=offtin(header+24); 108 if((bzctrllen<0) || (bzdatalen<0) || (newsize<0)) 142 if((new=malloc(newsize+1))==NULL) err(1,NULL); 145 while(newpos<newsize) { 156 if(newpos+ctrl[0]>newsize) 175 if(newpos+ctrl[1]>newsize) 198 (write(fd,new,newsize)!=newsize) || (close(fd)==-1))
|
bsdiff.c | 142 static off_t matchlen(u_char *old,off_t oldsize,u_char *new,off_t newsize) 146 for(i=0;(i<oldsize)&&(i<newsize);i++) 153 u_char *new,off_t newsize,off_t st,off_t en,off_t *pos) 158 x=matchlen(old+I[st],oldsize-I[st],new,newsize); 159 y=matchlen(old+I[en],oldsize-I[en],new,newsize); 171 if(memcmp(old+I[x],new,MIN(oldsize-I[x],newsize))<0) { 172 return search(I,old,oldsize,new,newsize,x,en,pos); 174 return search(I,old,oldsize,new,newsize,st,x,pos); 200 off_t oldsize,newsize; local 234 /* Allocate newsize+1 bytes instead of newsize bytes to ensur [all...] |
/external/smack/src/org/xbill/DNS/ |
DNSOutput.java | 60 int newsize = array.length * 2; local 61 if (newsize < pos + n) { 62 newsize = pos + n; 64 byte [] newarray = new byte[newsize];
|
/external/apache-xml/src/main/java/org/apache/xml/utils/ |
SuballocatedIntVector.java | 166 int newsize=index+m_numblocks; local 167 int[][] newMap=new int[newsize][]; 206 int newsize=index+m_numblocks; local 207 int[][] newMap=new int[newsize][]; 264 int newsize=index+m_numblocks; local 265 int[][] newMap=new int[newsize][]; 398 int newsize=index+m_numblocks; local 399 int[][] newMap=new int[newsize][];
|
/bootable/recovery/applypatch/ |
bsdiff.c | 159 static off_t matchlen(u_char *old,off_t oldsize,u_char *new,off_t newsize) 163 for(i=0;(i<oldsize)&&(i<newsize);i++) 170 u_char *new,off_t newsize,off_t st,off_t en,off_t *pos) 175 x=matchlen(old+I[st],oldsize-I[st],new,newsize); 176 y=matchlen(old+I[en],oldsize-I[en],new,newsize); 188 if(memcmp(old+I[x],new,MIN(oldsize-I[x],newsize))<0) { 189 return search(I,old,oldsize,new,newsize,x,en,pos); 191 return search(I,old,oldsize,new,newsize,st,x,pos); 215 // - old, oldsize, new, newsize are arguments; we don't load this 224 int bsdiff(u_char* old, off_t oldsize, off_t** IP, u_char* new, off_t newsize, [all...] |
/external/valgrind/main/none/tests/linux/ |
mremap2.c | 127 int newsize = newsizes[nsi] * PAGE; local 146 syscall(__NR_mremap, src, 20*PAGE, newsize, flags, dst, 0 ); 162 tidylen = newsize;
|
/external/dropbear/ |
buffer.c | 81 void buf_resize(buffer *buf, unsigned int newsize) { 83 if (newsize > BUF_MAX_SIZE) { 87 buf->data = m_realloc(buf->data, newsize); 88 buf->size = newsize; 89 buf->len = MIN(newsize, buf->len); 90 buf->pos = MIN(newsize, buf->pos);
|
buffer.h | 43 void buf_resize(buffer *buf, unsigned int newsize);
|
/external/e2fsprogs/resize/ |
extent.c | 84 int newsize; local 88 newsize = extent->size + 100; 92 newsize, &extent->list); 95 extent->size = newsize;
|
/ndk/tests/device/test-stlport_shared-exception/jni/ |
unroll1.cpp | 236 void reallocateStorage(unsigned int newsize, bool copyold = false) 242 if (newsize > 0) 244 int nsize = newsize * sizeof(double); 247 pEndNew = pBeginNew + newsize;
|
/ndk/tests/device/test-stlport_static-exception/jni/ |
unroll1.cpp | 236 void reallocateStorage(unsigned int newsize, bool copyold = false) 242 if (newsize > 0) 244 int nsize = newsize * sizeof(double); 247 pEndNew = pBeginNew + newsize;
|
/external/bison/lib/ |
vbitset.c | 59 bitset_windex newsize; local 65 newsize = VBITSET_N_WORDS (n_bits); 67 if (oldsize < newsize) 73 if (newsize > VBITSET_ASIZE (src)) 81 size = newsize; 83 size = newsize + newsize / 4; 91 (newsize - oldsize) * sizeof (bitset_word)); 92 VBITSET_SIZE (src) = newsize; 98 if ((oldsize - newsize) >= oldsize / 2 [all...] |
ebitset.c | 126 bitset_windex newsize; local 132 newsize = EBITSET_N_ELTS (n_bits); 134 if (oldsize < newsize) 140 if (newsize > EBITSET_ASIZE (src)) 148 size = newsize; 150 size = newsize + newsize / 4; 158 (newsize - oldsize) * sizeof (ebitset_elt *)); 164 if ((oldsize - newsize) >= oldsize / 2) 167 = realloc (EBITSET_ELTS (src), newsize * sizeof (ebitset_elt *)) [all...] |
/bionic/libc/upstream-dlmalloc/ |
malloc.h | 596 void* mspace_realloc(mspace msp, void* mem, size_t newsize); 597 void* mspace_realloc_in_place(mspace msp, void* mem, size_t newsize);
|
/external/chromium/third_party/libevent/ |
evport.c | 239 int newsize = factor * oldsize; local 244 tmp = realloc(epdp->ed_fds, sizeof(struct fd_info) * newsize); 249 (newsize - oldsize)*sizeof(struct fd_info)); 250 epdp->ed_nevents = newsize;
|
/external/llvm/include/llvm/ADT/ |
ilist.h | 697 void resize(size_type newsize, NodeTy val) { 700 for ( ; i != this->end() && len < newsize; ++i, ++len) /* empty*/ ; 702 if (len == newsize) 705 insert(this->end(), newsize - len, val); 707 void resize(size_type newsize) { resize(newsize, NodeTy()); }
|
/external/openssl/crypto/bn/ |
bn_ctx.c | 335 unsigned int newsize = (st->size ? local 337 unsigned int *newitems = OPENSSL_malloc(newsize * 345 st->size = newsize;
|
/external/clang/include/clang/Basic/ |
OnDiskHashTable.h | 152 void resize(size_t newsize) { 153 Bucket* newBuckets = (Bucket*) std::calloc(newsize, sizeof(Bucket)); 159 insert(newBuckets, newsize, E); 164 NumBuckets = newsize;
|
/external/eigen/unsupported/test/mpreal/ |
dlmalloc.h | 491 void* mspace_realloc(mspace msp, void* mem, size_t newsize);
|