Home
last modified time | relevance | path

Searched refs:newSize (Results 1 – 25 of 163) sorted by relevance

1234567

/external/deqp/framework/opengl/
DgluObjectWrapper.cpp101 void ObjectVector::resize (size_t newSize) in resize() argument
105 if (newSize == 0) in resize()
109 if (oldSize < newSize) in resize()
111 m_objects.resize(newSize, 0); in resize()
112 (m_gl.*m_traits.genFunc)(glw::GLsizei(newSize - oldSize), &m_objects[oldSize]); in resize()
114 else if (oldSize > newSize) in resize()
116 (m_gl.*m_traits.deleteFunc)(glw::GLsizei(oldSize - newSize), &m_objects[newSize]); in resize()
117 m_objects.resize(newSize); in resize()
/external/lzma/CPP/Common/
DMyBuffer.h76 void ChangeSize_KeepData(size_t newSize, size_t keepSize) in ChangeSize_KeepData() argument
78 if (newSize == _size) in ChangeSize_KeepData()
81 if (newSize != 0) in ChangeSize_KeepData()
83 newBuffer = new T[newSize]; in ChangeSize_KeepData()
87 memcpy(newBuffer, _items, MyMin(keepSize, newSize) * sizeof(T)); in ChangeSize_KeepData()
91 _size = newSize; in ChangeSize_KeepData()
158 void Alloc(size_t newSize) in Alloc() argument
162 MY_ARRAY_NEW(_items, T, newSize) in Alloc()
/external/lzma/C/
D7zBuf2.c26 size_t newSize = p->pos + size; in DynBuf_Write() local
28 newSize += newSize / 4; in DynBuf_Write()
29 data = (Byte *)ISzAlloc_Alloc(alloc, newSize); in DynBuf_Write()
32 p->size = newSize; in DynBuf_Write()
DAlloc.c328 size_t newSize; in SzAlignedAlloc() local
334 newSize = size + ALLOC_ALIGN_SIZE * 1 + ADJUST_ALLOC_SIZE; in SzAlignedAlloc()
335 if (newSize < size) in SzAlignedAlloc()
338 p = MyAlloc(newSize); in SzAlignedAlloc()
345 Print(" a_size="); PrintHex(newSize, 8); in SzAlignedAlloc()
399 size_t newSize; in AlignOffsetAlloc_Alloc() local
412 newSize = size + alignSize + extra + ADJUST_ALLOC_SIZE; in AlignOffsetAlloc_Alloc()
413 if (newSize < size) in AlignOffsetAlloc_Alloc()
416 adr = ISzAlloc_Alloc(p->baseAlloc, newSize); in AlignOffsetAlloc_Alloc()
427 Print(" a_size="); PrintHex(newSize, 8); in AlignOffsetAlloc_Alloc()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/
DSeekableInMemoryByteChannel.java98 public SeekableByteChannel truncate(long newSize) { in truncate() argument
99 if (size > newSize) { in truncate()
100 size = (int) newSize; in truncate()
139 int newSize = position + wanted; in write() local
140 if (newSize < 0) { // overflow in write()
144 resize(newSize); in write()
/external/deqp/framework/platform/lnx/
DtcuLnxVulkanPlatform.cpp67 void resize (const UVec2& newSize) in resize() argument
69 m_window->setDimensions((int)newSize.x(), (int)newSize.y()); in resize()
110 void resize (const UVec2& newSize) in resize() argument
112 m_window->setDimensions((int)newSize.x(), (int)newSize.y()); in resize()
151 void resize (const UVec2& newSize) in resize() argument
153 m_window->setDimensions((int)newSize.x(), (int)newSize.y()); in resize()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DCalendarCache.java25 private void makeArrays(int newSize) { in makeArrays() argument
26 keys = new long[newSize]; in makeArrays()
27 values = new long[newSize]; in makeArrays()
29 for (int i = 0; i < newSize; i++) { in makeArrays()
32 arraySize = newSize; in makeArrays()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DCalendarCache.java23 private void makeArrays(int newSize) { in makeArrays() argument
24 keys = new long[newSize]; in makeArrays()
25 values = new long[newSize]; in makeArrays()
27 for (int i = 0; i < newSize; i++) { in makeArrays()
30 arraySize = newSize; in makeArrays()
/external/cldr/tools/java/org/unicode/cldr/util/
DPick.java754 public static double[] realloc(double[] source, int newSize) { in realloc() argument
755 double[] temp = new double[newSize]; in realloc()
756 if (newSize > source.length) newSize = source.length; in realloc()
757 if (newSize != 0) System.arraycopy(source, 0, temp, 0, newSize); in realloc()
761 public static int[] realloc(int[] source, int newSize) { in realloc() argument
762 int[] temp = new int[newSize]; in realloc()
763 if (newSize > source.length) newSize = source.length; in realloc()
764 if (newSize != 0) System.arraycopy(source, 0, temp, 0, newSize); in realloc()
768 public static Pick[] realloc(Pick[] source, int newSize) { in realloc() argument
769 Pick[] temp = new Pick[newSize]; in realloc()
[all …]
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/misc/
DIntArray.java78 int newSize = data.length*2; in ensureCapacity() local
79 if ( index>newSize ) { in ensureCapacity()
80 newSize = index+1; in ensureCapacity()
82 int[] newData = new int[newSize]; in ensureCapacity()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DCompactCharArray.java203 int newSize = 0; in compact() local
230 newSize); in compact()
233 dest = newSize; in compact()
236 if (limit > newSize) { in compact()
237 for (int j = newSize; j < limit; ++j) { in compact()
240 newSize = limit; in compact()
252 char[] result = new char[newSize]; in compact()
253 System.arraycopy(target, 0, result, 0, newSize); in compact()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DCompactCharArray.java201 int newSize = 0; in compact() local
228 newSize); in compact()
231 dest = newSize; in compact()
234 if (limit > newSize) { in compact()
235 for (int j = newSize; j < limit; ++j) { in compact()
238 newSize = limit; in compact()
250 char[] result = new char[newSize]; in compact()
251 System.arraycopy(target, 0, result, 0, newSize); in compact()
/external/icu/icu4c/source/common/
Duvectr64.cpp196 void UVector64::setSize(int32_t newSize) { in setSize() argument
198 if (newSize < 0) { in setSize()
201 if (newSize > count) { in setSize()
203 if (!ensureCapacity(newSize, ec)) { in setSize()
206 for (i=count; i<newSize; ++i) { in setSize()
210 count = newSize; in setSize()
/external/libxml2/
Dbuf.c747 unsigned int newSize; in xmlBufResize() local
775 newSize = (buf->size ? buf->size*2 : size + 10); in xmlBufResize()
776 while (size > newSize) { in xmlBufResize()
777 if (newSize > UINT_MAX / 2) { in xmlBufResize()
781 newSize *= 2; in xmlBufResize()
785 newSize = size+10; in xmlBufResize()
789 newSize = size; in xmlBufResize()
791 newSize = buf->size * 2; in xmlBufResize()
792 while (size > newSize) { in xmlBufResize()
793 if (newSize > UINT_MAX / 2) { in xmlBufResize()
[all …]
/external/icu/icu4c/source/samples/layout/
DFontTableCache.cpp79 le_int32 newSize = fTableCacheSize + TABLE_CACHE_GROW; in add() local
81 fTableCache = (FontTableCacheEntry *) LE_GROW_ARRAY(fTableCache, newSize); in add()
83 for (le_int32 i = fTableCacheSize; i < newSize; i += 1) { in add()
88 fTableCacheSize = newSize; in add()
/external/archive-patcher/applier/src/main/java/com/google/archivepatcher/applier/bsdiff/
DBsPatch.java127 final long newSize = readBsdiffLong(patchData); in applyPatchInternal() local
128 if (newSize < 0 || newSize > Integer.MAX_VALUE) { in applyPatchInternal()
131 if (expectedNewSize != null && expectedNewSize != newSize) { in applyPatchInternal()
144 while (newDataBytesWritten < newSize) { in applyPatchInternal()
193 if (expectedFinalNewDataBytesWritten > newSize) { in applyPatchInternal()
/external/mesa3d/src/mesa/main/
Dimports.c196 _mesa_align_realloc(void *oldBuffer, size_t oldSize, size_t newSize, in _mesa_align_realloc() argument
201 return _aligned_realloc(oldBuffer, newSize, alignment); in _mesa_align_realloc()
203 const size_t copySize = (oldSize < newSize) ? oldSize : newSize; in _mesa_align_realloc()
204 void *newBuf = _mesa_align_malloc(newSize, alignment); in _mesa_align_realloc()
/external/deqp/framework/delibs/decpp/
DdeRingBuffer.hpp42 void resize (int newSize);
95 void RingBuffer<T>::resize (int newSize) in resize() argument
97 DE_ASSERT(newSize >= m_numElements); in resize()
98 T* buf = new T[newSize]; in resize()
109 m_size = newSize; in resize()
DdePoolArray.hpp250 inline void PoolArray<T, Alignment>::resize (deUintptr newSize) in resize() argument
252 if (newSize < m_numElements) in resize()
255 for (deUintptr ndx = newSize; ndx < m_numElements; ndx++) in resize()
258 m_numElements = newSize; in resize()
260 else if (newSize > m_numElements) in resize()
264 reserve(newSize); in resize()
265 m_numElements = newSize; in resize()
274 inline void PoolArray<T, Alignment>::resize (deUintptr newSize, const T& value) in resize() argument
276 if (newSize < m_numElements) in resize()
277 resize(newSize); // value is not used in resize()
[all …]
/external/icu/icu4c/source/test/perf/leperf/
DFontTableCache.cpp83 le_int32 newSize = fTableCacheSize + TABLE_CACHE_GROW; in add() local
85 fTableCache = (FontTableCacheEntry *) LE_GROW_ARRAY(fTableCache, newSize); in add()
87 for (le_int32 i = fTableCacheSize; i < newSize; i += 1) { in add()
93 fTableCacheSize = newSize; in add()
/external/icu/icu4c/source/test/letest/
DFontTableCache.cpp81 le_int32 newSize = fTableCacheSize + TABLE_CACHE_GROW; in add() local
83 fTableCache = (FontTableCacheEntry *) LE_GROW_ARRAY(fTableCache, newSize); in add()
85 for (le_int32 i = fTableCacheSize; i < newSize; i += 1) { in add()
91 fTableCacheSize = newSize; in add()
/external/lzma/CPP/Windows/
DFileFind.cpp706 UINT32 newSize = GetLogicalDriveStrings(size, buf); in MyGetLogicalDriveStrings() local
707 if (newSize == 0 || newSize > size) in MyGetLogicalDriveStrings()
711 for (UINT32 i = 0; i < newSize; i++) in MyGetLogicalDriveStrings()
720 return prev == newSize; in MyGetLogicalDriveStrings()
729 UINT32 newSize = GetLogicalDriveStringsW(size, buf); in MyGetLogicalDriveStrings() local
730 if (newSize == 0 || newSize > size) in MyGetLogicalDriveStrings()
734 for (UINT32 i = 0; i < newSize; i++) in MyGetLogicalDriveStrings()
743 return prev == newSize; in MyGetLogicalDriveStrings()
/external/eigen/Eigen/src/Core/
DCwiseNullaryOp.h383 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived& DenseBase<Derived>::setLinSpaced(Index newSize, cons…
386 …return derived() = Derived::NullaryExpr(newSize, internal::linspaced_op<Scalar,PacketScalar>(low,h…
515 PlainObjectBase<Derived>::setZero(Index newSize)
517 resize(newSize);
580 DenseBase<Derived>::Ones(Index newSize)
582 return Constant(newSize, Scalar(1));
641 PlainObjectBase<Derived>::setOnes(Index newSize)
643 resize(newSize);
803 …nst typename MatrixBase<Derived>::BasisReturnType MatrixBase<Derived>::Unit(Index newSize, Index i)
806 return BasisReturnType(SquareMatrixType::Identity(newSize,newSize), i);
/external/antlr/tool/src/main/java/org/antlr/misc/
DIntArrayList.java68 public void setSize(int newSize) { in setSize() argument
69 if ( newSize>=elements.length ) { in setSize()
70 ensureCapacity(newSize); in setSize()
72 n = newSize; in setSize()
/external/skqp/include/private/
DSkPathRef.h412 size_t newSize = sizeof(uint8_t) * verbCount + sizeof(SkPoint) * pointCount; variable
414 size_t minSize = newSize + newReserve;
428 fFreeSpace -= newSize;
478 size_t newSize; variable
480 newSize = oldSize + growSize;
486 fPoints = reinterpret_cast<SkPoint*>(sk_realloc_throw(fPoints, newSize));
488 void* newVerbsDst = SkTAddOffset<void>(fPoints, newSize - oldVerbSize);
491 fVerbs = SkTAddOffset<uint8_t>(fPoints, newSize);

1234567