Home
last modified time | relevance | path

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

123

/external/bsdiff/
Dbsdiff.cc54 off_t newsize) { in matchlen() argument
57 for(i=0;(i<oldsize)&&(i<newsize);i++) in matchlen()
64 u_char *new_buf,off_t newsize,off_t st,off_t en,off_t *pos) in search() argument
69 x=matchlen(old+I[st],oldsize-I[st],new_buf,newsize); in search()
70 y=matchlen(old+I[en],oldsize-I[en],new_buf,newsize); in search()
82 if(memcmp(old+I[x],new_buf,std::min(oldsize-I[x],newsize))<=0) { in search()
83 return search(I,old,oldsize,new_buf,newsize,x,en,pos); in search()
85 return search(I,old,oldsize,new_buf,newsize,st,x,pos); in search()
111 off_t oldsize,newsize; in bsdiff() local
144 ((newsize=lseek(fd,0,SEEK_END))==-1) || in bsdiff()
[all …]
Dbspatch.cc191 uint64_t oldsize, newsize; in bspatch() local
195 newsize = signed_newsize; in bspatch()
255 new_file.reset(new MemoryFile(std::move(new_file), newsize)); in bspatch()
262 while (newpos < newsize) { in bspatch()
276 if (newpos + ctrl[0] > newsize) in bspatch()
329 if (newpos + ctrl[1] > newsize) in bspatch()
/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/libgdx/extensions/gdx-bullet/jni/src/bullet/LinearMath/
DbtAlignedObjectArray.h203 SIMD_FORCE_INLINE void resizeNoInitialize(int newsize) in resizeNoInitialize() argument
205 if (newsize > size()) in resizeNoInitialize()
207 reserve(newsize); in resizeNoInitialize()
209 m_size = newsize; in resizeNoInitialize()
212 SIMD_FORCE_INLINE void resize(int newsize, const T& fillData=T())
216 if (newsize < curSize)
218 for(int i = newsize; i < curSize; i++)
224 if (newsize > curSize)
226 reserve(newsize);
229 for (int i=curSize;i<newsize;i++)
[all …]
/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/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/Gimpact/
Dgim_memory.cpp110 void * gim_realloc(void *ptr, size_t oldsize, size_t newsize) in gim_realloc() argument
112 void * newptr = gim_alloc(newsize); in gim_realloc()
113 size_t copysize = oldsize<newsize?oldsize:newsize; in gim_realloc()
Dgim_array.h63 inline bool resizeData(GUINT newsize) in resizeData() argument
65 if(newsize==0) in resizeData()
73 m_data = (T*)gim_realloc(m_data,m_size*sizeof(T),newsize*sizeof(T)); in resizeData()
77 m_data = (T*)gim_alloc(newsize*sizeof(T)); in resizeData()
79 m_allocated_size = newsize; in resizeData()
DbtGenericPoolAllocator.cpp271 void * btPoolRealloc(void *ptr, size_t oldsize, size_t newsize) in btPoolRealloc() argument
273 void * newptr = btPoolAlloc(newsize); in btPoolRealloc()
274 size_t copysize = oldsize<newsize?oldsize:newsize; in btPoolRealloc()
Dgim_bitset.h60 inline bool resize(GUINT newsize) in resize() argument
63 m_container.resize(newsize/GUINT_BIT_COUNT + 1,false); in resize()
/external/libgdx/extensions/gdx-bullet/jni/swig-src/linearmath/com/badlogic/gdx/physics/bullet/linearmath/
DbtVector3Array.java84 public void resizeNoInitialize(int newsize) { in resizeNoInitialize() argument
85 LinearMathJNI.btVector3Array_resizeNoInitialize(swigCPtr, this, newsize); in resizeNoInitialize()
88 public void resize(int newsize, Vector3 fillData) { in resize() argument
89 LinearMathJNI.btVector3Array_resize__SWIG_0(swigCPtr, this, newsize, fillData); in resize()
92 public void resize(int newsize) { in resize() argument
93 LinearMathJNI.btVector3Array_resize__SWIG_1(swigCPtr, this, newsize); in resize()
DbtScalarArray.java84 public void resizeNoInitialize(int newsize) { in resizeNoInitialize() argument
85 LinearMathJNI.btScalarArray_resizeNoInitialize(swigCPtr, this, newsize); in resizeNoInitialize()
88 public void resize(int newsize, float fillData) { in resize() argument
89 LinearMathJNI.btScalarArray_resize__SWIG_0(swigCPtr, this, newsize, fillData); in resize()
92 public void resize(int newsize) { in resize() argument
93 LinearMathJNI.btScalarArray_resize__SWIG_1(swigCPtr, this, newsize); in resize()
/external/libgdx/extensions/gdx-bullet/jni/swig-src/collision/com/badlogic/gdx/physics/bullet/collision/
DbtCollisionObjectConstArray.java85 public void resizeNoInitialize(int newsize) { in resizeNoInitialize() argument
86 CollisionJNI.btCollisionObjectConstArray_resizeNoInitialize(swigCPtr, this, newsize); in resizeNoInitialize()
89 public void resize(int newsize, btCollisionObject fillData) { in resize() argument
90 …CollisionJNI.btCollisionObjectConstArray_resize__SWIG_0(swigCPtr, this, newsize, btCollisionObject… in resize()
93 public void resize(int newsize) { in resize() argument
94 CollisionJNI.btCollisionObjectConstArray_resize__SWIG_1(swigCPtr, this, newsize); in resize()
DbtCollisionObjectArray.java85 public void resizeNoInitialize(int newsize) { in resizeNoInitialize() argument
86 CollisionJNI.btCollisionObjectArray_resizeNoInitialize(swigCPtr, this, newsize); in resizeNoInitialize()
89 public void resize(int newsize, btCollisionObject fillData) { in resize() argument
90 …CollisionJNI.btCollisionObjectArray_resize__SWIG_0(swigCPtr, this, newsize, btCollisionObject.getC… in resize()
93 public void resize(int newsize) { in resize() argument
94 CollisionJNI.btCollisionObjectArray_resize__SWIG_1(swigCPtr, this, newsize); in resize()
DbtPersistentManifoldArray.java86 public void resizeNoInitialize(int newsize) { in resizeNoInitialize() argument
87 CollisionJNI.btPersistentManifoldArray_resizeNoInitialize(swigCPtr, this, newsize); in resizeNoInitialize()
90 public void resize(int newsize, btPersistentManifold fillData) { in resize() argument
91 …CollisionJNI.btPersistentManifoldArray_resize__SWIG_0(swigCPtr, this, newsize, btPersistentManifol… in resize()
94 public void resize(int newsize) { in resize() argument
95 CollisionJNI.btPersistentManifoldArray_resize__SWIG_1(swigCPtr, this, newsize); in resize()
/external/libgdx/extensions/gdx-bullet/jni/swig-src/extras/com/badlogic/gdx/physics/bullet/extras/
DbtStringArray.java87 public void resizeNoInitialize(int newsize) { in resizeNoInitialize() argument
88 ExtrasJNI.btStringArray_resizeNoInitialize(swigCPtr, this, newsize); in resizeNoInitialize()
91 public void resize(int newsize, String fillData) { in resize() argument
92 ExtrasJNI.btStringArray_resize__SWIG_0(swigCPtr, this, newsize, fillData); in resize()
95 public void resize(int newsize) { in resize() argument
96 ExtrasJNI.btStringArray_resize__SWIG_1(swigCPtr, this, newsize); in 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/curl/tests/
Dmemanalyze.pl187 my ($oldaddr, $newsize, $newaddr) = ($2, $3, $4);
195 $totalmem += $newsize;
196 $sizeataddr{$newaddr}=$newsize;
199 printf("%d more bytes ($source:$linenum)\n", $newsize);
/external/curl/tests/server/
Dfake_ntlm.c54 size_t newsize; in printable() local
86 newsize = outsize + outincr; in printable()
87 newbuf = realloc(outbuf, newsize); in printable()
93 outsize = newsize; in printable()
/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/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/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()

123