Home
last modified time | relevance | path

Searched refs:newSize (Results 76 – 100 of 9127) sorted by relevance

12345678910>>...366

/dports/www/grafana8/grafana-8.3.6/vendor/github.com/apache/arrow/go/arrow/memory/
H A Dbuffer.go98 func (b *Buffer) Resize(newSize int) {
99 b.resize(newSize, true)
104 func (b *Buffer) ResizeNoShrink(newSize int) {
105 b.resize(newSize, false)
108 func (b *Buffer) resize(newSize int, shrink bool) {
109 if !shrink || newSize > b.length {
110 b.Reserve(newSize)
114 newCap := roundUpToMultipleOf64(newSize)
116 if newSize == 0 {
124 b.length = newSize
/dports/databases/arrow/apache-arrow-6.0.1/go/arrow/memory/
H A Dbuffer.go98 func (b *Buffer) Resize(newSize int) {
99 b.resize(newSize, true)
104 func (b *Buffer) ResizeNoShrink(newSize int) {
105 b.resize(newSize, false)
108 func (b *Buffer) resize(newSize int, shrink bool) {
109 if !shrink || newSize > b.length {
110 b.Reserve(newSize)
114 newCap := roundUpToMultipleOf64(newSize)
116 if newSize == 0 {
124 b.length = newSize
/dports/security/vault/vault-1.8.2/vendor/github.com/apache/arrow/go/arrow/memory/
H A Dbuffer.go98 func (b *Buffer) Resize(newSize int) {
99 b.resize(newSize, true)
104 func (b *Buffer) ResizeNoShrink(newSize int) {
105 b.resize(newSize, false)
108 func (b *Buffer) resize(newSize int, shrink bool) {
109 if !shrink || newSize > b.length {
110 b.Reserve(newSize)
114 newCap := roundUpToMultipleOf64(newSize)
116 if newSize == 0 {
124 b.length = newSize
/dports/security/helib/HElib-1.3.1/include/helib/
H A DPtrMatrix.h34 virtual void resize(long newSize) // reset the number of rows in resize()
60 void resize(PtrMatrix<T>& v, long newSize) in resize() argument
62 v.resize(newSize); in resize()
121 if (oldSize == newSize) in resize()
125 if (newSize > oldSize) { in resize()
126 rows.reserve(newSize); in resize()
127 for (int i = oldSize; i < newSize; i++) in resize()
190 if (oldSize == newSize) in resize()
194 if (newSize > oldSize) { in resize()
195 rows.reserve(newSize); in resize()
[all …]
/dports/devel/log4cxx/apache-log4cxx-0.11.0/src/main/cpp/
H A Dcyclicbuffer.cpp116 void CyclicBuffer::resize(int newSize) in resize() argument
118 if (newSize < 0) in resize()
122 StringHelper::toString(newSize, p, msg); in resize()
127 if (newSize == numElems) in resize()
132 LoggingEventList temp(newSize); in resize()
134 int loopLen = newSize < numElems ? newSize : numElems; in resize()
151 maxSize = newSize; in resize()
153 if (loopLen == newSize) in resize()
/dports/devel/folly/folly-2021.12.27.00/folly/io/test/
H A DIOBufCBTest.cpp47 size_t newSize = gIOBufAlloc.load(); in TEST() local
48 CHECK_GT(newSize, prevSize); in TEST()
49 size_t delta = newSize - prevSize; in TEST()
53 prevSize = newSize; in TEST()
86 size_t newSize = gIOBufAlloc.load(); in TEST() local
87 CHECK_GE(newSize, initialSize + kAllocSize); in TEST()
100 size_t newSize = gIOBufAlloc.load(); in TEST() local
101 CHECK_GE(newSize, initialSize + kAllocSize); in TEST()
117 size_t newSize = gIOBufAlloc.load(); in TEST() local
118 CHECK_GE(newSize, initialSize + kAllocSize); in TEST()
[all …]
/dports/devel/intel-graphics-compiler/intel-graphics-compiler-igc-1.0.9636/IGC/AdaptorOCL/cif/cif/builtins/memory/buffer/impl/
H A Dbuffer_impl.h135 bool Resize(size_t newSize) { in CIF_DECLARE_INTERFACE_PIMPL()
136 return this->Reallocate(newSize, std::max(this->capacity, newSize)); in CIF_DECLARE_INTERFACE_PIMPL()
176 size_t newSize = this->size + misalligned; in CIF_DECLARE_INTERFACE_PIMPL() local
177 return Reallocate(newSize, newSize); in CIF_DECLARE_INTERFACE_PIMPL()
216 bool Reallocate(size_t newSize, size_t newCapacity){ in CIF_DECLARE_INTERFACE_PIMPL()
229 this->size = newSize; in CIF_DECLARE_INTERFACE_PIMPL()
235 this->size = newSize; in CIF_DECLARE_INTERFACE_PIMPL()
248 this->size = newSize; in CIF_DECLARE_INTERFACE_PIMPL()
255 this->size = newSize; in CIF_DECLARE_INTERFACE_PIMPL()
267 this->size = newSize; in CIF_DECLARE_INTERFACE_PIMPL()
[all …]
/dports/devel/android-tools-adb/platform_system_core-android-9.0.0_r3/libutils/
H A DSharedBuffer.cpp67 SharedBuffer* SharedBuffer::editResize(size_t newSize) const in editResize()
71 if (buf->mSize == newSize) return buf; in editResize()
74 LOG_ALWAYS_FATAL_IF((newSize >= (SIZE_MAX - sizeof(SharedBuffer))), in editResize()
75 "Invalid buffer size %zu", newSize); in editResize()
77 buf = (SharedBuffer*)realloc(buf, sizeof(SharedBuffer) + newSize); in editResize()
79 buf->mSize = newSize; in editResize()
83 SharedBuffer* sb = alloc(newSize); in editResize()
86 memcpy(sb->data(), data(), newSize < mySize ? newSize : mySize); in editResize()
/dports/science/openkim-models/openkim-models-2021-01-28/model-drivers/SNAP__MD_536750310735_000/
H A DZBL.cpp114 void ZBL::allocate(int const newSize) in allocate() argument
116 d1a.resize(newSize, newSize, 0.0); in allocate()
117 d2a.resize(newSize, newSize, 0.0); in allocate()
118 d3a.resize(newSize, newSize, 0.0); in allocate()
119 d4a.resize(newSize, newSize, 0.0); in allocate()
120 zze.resize(newSize, newSize, 0.0); in allocate()
121 sw1.resize(newSize, newSize, 0.0); in allocate()
122 sw2.resize(newSize, newSize, 0.0); in allocate()
123 sw3.resize(newSize, newSize, 0.0); in allocate()
124 sw4.resize(newSize, newSize, 0.0); in allocate()
[all …]
/dports/math/vtk6/VTK-6.2.0/Common/Core/
H A DvtkIdList.cxx76 vtkIdType newSize=i+number; in WritePointer() local
77 if ( newSize > this->Size ) in WritePointer()
79 this->Resize(newSize); in WritePointer()
81 if ( newSize > this->NumberOfIds ) in WritePointer()
83 this->NumberOfIds = newSize; in WritePointer()
125 vtkIdType newSize; in Resize() local
129 newSize = this->Size + sz; in Resize()
137 newSize = sz; in Resize()
140 if (newSize <= 0) in Resize()
146 if ( (newIds = new vtkIdType[newSize]) == NULL ) in Resize()
[all …]
/dports/x11-toolkits/py-wxPython40/wxPython-4.0.7/wx/lib/
H A Dresizewidget.py208 newSize = self.GetSize() - delta.Get()
209 self._adjustNewSize(newSize)
210 if newSize != self.GetSize():
211 self.SetSize(newSize)
213 self._bestSize = newSize
224 def _adjustNewSize(self, newSize): argument
225 if newSize.width < self.RW_LENGTH:
226 newSize.width = self.RW_LENGTH
227 if newSize.height < self.RW_LENGTH:
228 newSize.height = self.RW_LENGTH
[all …]
/dports/devel/libhoard/Hoard/src/Heap-Layers/utility/
H A Ddynarray.h82 const int newSize = index * 2 + 1; variable
83 ObjType * arr = new ObjType[newSize];
85 printf ("m %x %d\n", arr, newSize * sizeof(ObjType));
95 internalArrayLength = newSize;
113 const int newSize = nelts * 2; in trim() local
114 ObjType * arr = new ObjType[newSize]; in trim()
116 printf ("m %x %d\n", arr, newSize * sizeof(ObjType)); in trim()
124 internalArrayLength = newSize; in trim()
/dports/games/stendhal/stendhal-1.35/src/games/stendhal/common/memory/
H A DField.java34 public static byte[] expand(byte[] field, int newSize, boolean keepData) { in expand() argument
35 if (field == null || field.length < newSize) { in expand()
36 byte[] newArray = new byte[newSize]; in expand()
60 public static int[] expand(int[] field, int newSize, boolean keepData) { in expand() argument
61 if (field == null || field.length < newSize) { in expand()
62 int[] newArray = new int[newSize]; in expand()
87 if (field == null || field.length < newSize) { in expand()
88 float[] newArray = new float[newSize]; in expand()
113 public static <T> T[] expand(T[] field, int newSize, boolean keepData) { in expand() argument
118 if (field.length < newSize) { in expand()
[all …]
/dports/graphics/libprojectm/projectm-3.1.12/src/MilkDrop2/nu/
H A DVector.h179 void resize(size_t newSize, Type val) in resize() argument
181 if (newSize < numPtrs) in resize()
183 numPtrs = newSize; in resize()
185 else if (newSize > numPtrs) in resize()
187 reserve(allocSize + (newSize - numPtrs) + INCREMENT); in resize()
189 while(numPtrs < newSize) in resize()
197 void resize(size_t newSize) in resize() argument
199 if (newSize < numPtrs) in resize()
201 numPtrs = newSize; in resize()
203 else if (newSize > numPtrs) in resize()
[all …]
/dports/devel/libflatarray/libflatarray-0.3.0/src/
H A Dcuda_array.hpp98 inline void resize(std::size_t newSize) in resize() argument
100 resize_implementation(newSize, 0); in resize()
103 inline void resize(std::size_t newSize, const ELEMENT_TYPE& defaultElement) in resize() argument
105 resize_implementation(newSize, &defaultElement); in resize()
156 if (newSize <= my_capacity) { in resize_implementation()
158 for (std::size_t i = my_size; i < newSize; ++i) { in resize_implementation()
167 my_size = newSize; in resize_implementation()
171 ELEMENT_TYPE *newData = LibFlatArray::cuda_allocator<ELEMENT_TYPE>().allocate(newSize); in resize_implementation()
176 for (std::size_t i = my_size; i < newSize; ++i) { in resize_implementation()
186 my_size = newSize; in resize_implementation()
[all …]
/dports/math/faiss/faiss-1.7.1/faiss/gpu/utils/
H A DTensor-inl.cuh438 IndexT newSize[Dim]; in castResize() local
526 NewIndexT newSize[Dim]; in castIndexType() local
685 IndexT newSize[Dim]; in transpose() local
694 newSize[dim1] = newSize[dim2]; in transpose()
695 newSize[dim2] = tmp; in transpose()
722 IndexT newSize[Dim]; in transposeInnermost() local
731 newSize[dim1] = newSize[dim2]; in transposeInnermost()
732 newSize[dim2] = tmp; in transposeInnermost()
1005 IndexT newSize[Dim]; in narrow() local
1041 size_t newSize = 1; in view() local
[all …]
/dports/devel/android-tools-fastboot/platform_system_core-platform-tools-29.0.5/libutils/
H A DSharedBuffer.cpp68 SharedBuffer* SharedBuffer::editResize(size_t newSize) const in editResize()
72 if (buf->mSize == newSize) return buf; in editResize()
75 LOG_ALWAYS_FATAL_IF((newSize >= (SIZE_MAX - sizeof(SharedBuffer))), in editResize()
76 "Invalid buffer size %zu", newSize); in editResize()
78 buf = (SharedBuffer*)realloc(buf, sizeof(SharedBuffer) + newSize); in editResize()
80 buf->mSize = newSize; in editResize()
84 SharedBuffer* sb = alloc(newSize); in editResize()
87 memcpy(sb->data(), data(), newSize < mySize ? newSize : mySize); in editResize()
/dports/science/axom/axom-0.6.1/src/axom/slam/tests/
H A Dslam_map_DynamicMap.cpp88 const int newSize = 2 * MAX_SET_SIZE; in TEST() local
89 m.resize(newSize); in TEST()
91 EXPECT_EQ(newSize, m.size()); in TEST()
97 const int newSize = MAX_SET_SIZE / 2; in TEST() local
98 m.resize(newSize); in TEST()
100 EXPECT_GT(oldSize, newSize); in TEST()
111 const int newSize = 2 * MAX_SET_SIZE; in TEST() local
112 m.resize(newSize); in TEST()
114 EXPECT_EQ(newSize, m.size()); in TEST()
/dports/devel/log4net/log4net-1.2.10/src/Util/
H A DCyclicBuffer.cs219 public void Resize(int newSize) in Resize() argument
223 if (newSize < 0) in Resize()
225 …reateArgumentOutOfRangeException("newSize", (object)newSize, "Parameter: newSize, Value: [" + newS… in Resize()
227 if (newSize == m_numElems) in Resize()
232 LoggingEvent[] temp = new LoggingEvent[newSize]; in Resize()
234 int loopLen = (newSize < m_numElems) ? newSize : m_numElems; in Resize()
250 m_maxSize = newSize; in Resize()
252 if (loopLen == newSize) in Resize()
/dports/graphics/kimageannotator/kImageAnnotator-0.5.3/tests/annotations/undo/
H A DScaleCommandTest.cpp28 auto newSize = QSize(250, 250); in TestRedo_Should_ScaleImageToNewSize() local
35 ScaleCommand scaleCommand(&image, newSize, &annotationArea); in TestRedo_Should_ScaleImageToNewSize()
41 QCOMPARE(image.boundingRect().size().toSize(), newSize); in TestRedo_Should_ScaleImageToNewSize()
48 auto newSize = QSize(250, 250); in TestUndo_Should_ScaleImageBackToOldSize() local
54 ScaleCommand scaleCommand(&image, newSize, &annotationArea); in TestUndo_Should_ScaleImageBackToOldSize()
56 QCOMPARE(image.boundingRect().size().toSize(), newSize); in TestUndo_Should_ScaleImageBackToOldSize()
69 auto newSize = QSize(250, 250); in TestRedo_Should_ScaleItemsBySameFactorAsImage() local
79 ScaleCommand scaleCommand(&image, newSize, &annotationArea); in TestRedo_Should_ScaleItemsBySameFactorAsImage()
92 auto newSize = QSize(250, 250); in TestUndo_Should_ScaleItemsBackToOriginalSize() local
102 ScaleCommand scaleCommand(&image, newSize, &annotationArea); in TestUndo_Should_ScaleItemsBackToOriginalSize()
/dports/games/dunelegacy/dunelegacy-0.96.4/include/GUI/
H A DMsgBox.h69 virtual void resize(Point newSize) { in resize() argument
70 resize(newSize.x,newSize.y); in resize()
93 Point newSize = pWindowWidget->getMinimumSize(); in resizeAll() local
94 newSize.x = std::max(newSize.x,120); in resizeAll()
95 newSize.y = std::max(newSize.y,30); in resizeAll()
96 resize(newSize.x,newSize.y); in resizeAll()
/dports/security/xml-security/xml-security-1_5_5/src/main/java/org/apache/xml/security/utils/
H A DUnsyncByteArrayOutputStream.java86 int newSize = size; in expandSize() local
87 while (newPos > newSize) { in expandSize()
88 newSize = newSize << 1; in expandSize()
90 if (newSize < 0) { in expandSize()
91 newSize = Integer.MAX_VALUE; in expandSize()
94 byte newBuf[] = new byte[newSize]; in expandSize()
97 size = newSize; in expandSize()
/dports/games/dhewm3/dhewm3-1.5.1/neo/idlib/containers/
H A DList.h453 int newNum = newSize; in AssureSize()
455 if ( newSize > size ) { in AssureSize()
462 newSize -= newSize % granularity; in AssureSize()
463 Resize( newSize ); in AssureSize()
478 int newNum = newSize; in AssureSize()
480 if ( newSize > size ) { in AssureSize()
487 newSize -= newSize % granularity; in AssureSize()
489 Resize( newSize ); in AssureSize()
511 int newNum = newSize; in AssureSizeAlloc()
520 newSize -= newSize % granularity; in AssureSizeAlloc()
[all …]
/dports/net/mpich2/mpich2-1.5/src/mpe2/src/slog2sdk/src/cern/colt/list/
H A DAbstractList.java199 public void setSize(int newSize) { in setSize() argument
200 if (newSize<0) throw new IndexOutOfBoundsException("newSize:"+newSize); in setSize()
203 if (newSize!=currentSize) { in setSize()
204 if (newSize>currentSize) beforeInsertDummies(currentSize,newSize-currentSize); in setSize()
205 else if (newSize<currentSize) removeFromTo(newSize, currentSize-1); in setSize()
/dports/science/colt/colt/src/cern/colt/list/
H A DAbstractList.java199 public void setSize(int newSize) { in setSize() argument
200 if (newSize<0) throw new IndexOutOfBoundsException("newSize:"+newSize); in setSize()
203 if (newSize!=currentSize) { in setSize()
204 if (newSize>currentSize) beforeInsertDummies(currentSize,newSize-currentSize); in setSize()
205 else if (newSize<currentSize) removeFromTo(newSize, currentSize-1); in setSize()

12345678910>>...366