/device/linaro/bootloader/edk2/MdeModulePkg/Library/SmmMemoryAllocationProfileLib/ |
MemoryAllocationLib.c | 944 Allocates and zeros the number bytes specified by NewSize from memory of the type
946 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
948 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
951 If the allocation of the new buffer is successful and the smaller of NewSize
956 @param NewSize The size, in bytes, of the buffer to reallocate.
967 IN UINTN NewSize,
973 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize);
975 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));
984 Allocates and zeros the number bytes specified by NewSize from memory of type
986 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and [all...] |
/external/swiftshader/third_party/LLVM/lib/Support/ |
StringMap.cpp | 182 unsigned NewSize; 188 NewSize = NumBuckets*2; 190 NewSize = NumBuckets; 197 ItemBucket *NewTableArray =(ItemBucket*)calloc(NewSize+1, sizeof(ItemBucket)); 198 NewTableArray[NewSize].Item = (StringMapEntryBase*)2; 206 unsigned NewBucket = FullHash & (NewSize-1); 208 NewTableArray[FullHash & (NewSize-1)].Item = IB->Item; 209 NewTableArray[FullHash & (NewSize-1)].FullHashValue = FullHash; 216 NewBucket = (NewBucket + ProbeSize++) & (NewSize-1); 228 NumBuckets = NewSize; [all...] |
/system/core/libcutils/ |
open_memstream.c | 92 size_t newSize; 95 newSize = kInitialSize; 97 newSize = stream->allocSize; 98 newSize += newSize / 2; /* expand by 3/2 */ 101 if (newSize < neededSize) 102 newSize = neededSize; 104 stream->bufp, *stream->bufp, newSize)); 105 char* newBuf = (char*) realloc(*stream->bufp, newSize); 110 stream->allocSize = newSize; [all...] |
/device/linaro/bootloader/edk2/EmulatorPkg/Library/GuardUefiMemoryAllocationLib/ |
MemoryAllocationLib.c | 656 Allocates and zeros the number bytes specified by NewSize from memory of the type
658 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
660 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
663 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
668 @param NewSize The size, in bytes, of the buffer to reallocate.
679 IN UINTN NewSize,
685 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize);
687 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));
696 Allocates and zeros the number bytes specified by NewSize from memory of type
698 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and [all...] |
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/ |
MemoryAllocationLib.c | 780 Allocates and zeros the number bytes specified by NewSize from memory of the type
782 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
784 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
787 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
792 @param NewSize The size, in bytes, of the buffer to reallocate.
803 IN UINTN NewSize,
809 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize);
811 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));
820 Allocates and zeros the number bytes specified by NewSize from memory of type
822 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_largefile.py | 116 newsize = size - 10
117 f.seek(newsize)
119 self.assertEqual(f.tell(), newsize) # else pointer moved
121 self.assertEqual(f.tell(), newsize) # else wasn't truncated
124 newsize -= 1
126 f.truncate(newsize)
130 self.assertEqual(f.tell(), newsize)
|
/device/linaro/bootloader/edk2/MdePkg/Library/SmmMemoryAllocationLib/ |
MemoryAllocationLib.c | 812 Allocates and zeros the number bytes specified by NewSize from memory of the type
814 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
816 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
819 If the allocation of the new buffer is successful and the smaller of NewSize
824 @param NewSize The size, in bytes, of the buffer to reallocate.
835 IN UINTN NewSize,
841 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize);
843 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));
852 Allocates and zeros the number bytes specified by NewSize from memory of type
854 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and [all...] |
/external/llvm/lib/Target/MSP430/ |
MSP430BranchSelector.cpp | 143 unsigned NewSize; 148 NewSize = 4; 161 NewSize = 6; 169 // Remember that this instruction is NewSize bytes, increase the size of the 170 // block by NewSize-2, remember to iterate. 171 BlockSizes[MBB.getNumber()] += NewSize-2; 172 MBBStartOffset += NewSize;
|
/external/python/cpython2/Lib/test/ |
test_largefile.py | 116 newsize = size - 10 117 f.seek(newsize) 119 self.assertEqual(f.tell(), newsize) # else pointer moved 121 self.assertEqual(f.tell(), newsize) # else wasn't truncated 124 newsize -= 1 126 f.truncate(newsize) 130 self.assertEqual(f.tell(), newsize)
|
/external/python/cpython3/Lib/test/ |
test_largefile.py | 104 newsize = size - 10 105 f.seek(newsize) 107 self.assertEqual(f.tell(), newsize) # else pointer moved 109 self.assertEqual(f.tell(), newsize) # else wasn't truncated 112 newsize -= 1 114 f.truncate(newsize) 117 self.assertEqual(f.tell(), newsize)
|
/external/swiftshader/third_party/LLVM/lib/Target/MSP430/ |
MSP430BranchSelector.cpp | 140 unsigned NewSize; 145 NewSize = 4; 158 NewSize = 6; 166 // Remember that this instruction is NewSize bytes, increase the size of the 167 // block by NewSize-2, remember to iterate. 168 BlockSizes[MBB.getNumber()] += NewSize-2; 169 MBBStartOffset += NewSize;
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_largefile.py | 116 newsize = size - 10 117 f.seek(newsize) 119 self.assertEqual(f.tell(), newsize) # else pointer moved 121 self.assertEqual(f.tell(), newsize) # else wasn't truncated 124 newsize -= 1 126 f.truncate(newsize) 130 self.assertEqual(f.tell(), newsize)
|
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_largefile.py | 116 newsize = size - 10 117 f.seek(newsize) 119 self.assertEqual(f.tell(), newsize) # else pointer moved 121 self.assertEqual(f.tell(), newsize) # else wasn't truncated 124 newsize -= 1 126 f.truncate(newsize) 130 self.assertEqual(f.tell(), newsize)
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_largefile.py | 116 newsize = size - 10 117 f.seek(newsize) 119 self.assertEqual(f.tell(), newsize) # else pointer moved 121 self.assertEqual(f.tell(), newsize) # else wasn't truncated 124 newsize -= 1 126 f.truncate(newsize) 130 self.assertEqual(f.tell(), newsize)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_largefile.py | 116 newsize = size - 10 117 f.seek(newsize) 119 self.assertEqual(f.tell(), newsize) # else pointer moved 121 self.assertEqual(f.tell(), newsize) # else wasn't truncated 124 newsize -= 1 126 f.truncate(newsize) 130 self.assertEqual(f.tell(), newsize)
|
/external/deqp/framework/delibs/decpp/ |
dePoolArray.hpp | 250 inline void PoolArray<T, Alignment>::resize (deUintptr newSize) 252 if (newSize < m_numElements) 255 for (deUintptr ndx = newSize; ndx < m_numElements; ndx++) 258 m_numElements = newSize; 260 else if (newSize > m_numElements) 264 reserve(newSize); 265 m_numElements = newSize; 274 inline void PoolArray<T, Alignment>::resize (deUintptr newSize, const T& value) 276 if (newSize < m_numElements) 277 resize(newSize); // value is not use [all...] |
deRingBuffer.hpp | 42 void resize (int newSize); 95 void RingBuffer<T>::resize (int newSize) 97 DE_ASSERT(newSize >= m_numElements); 98 T* buf = new T[newSize]; 109 m_size = newSize;
|
/cts/suite/audio_quality/lib/src/audio/ |
Buffer.cpp | 47 size_t newSize = mSize/2; 50 for (size_t i = 0; i < newSize/2; i++) { //16bpp only 55 for (size_t i = 0; i < newSize/2; i++) { //16bpp only 60 for (size_t i = 0; i < newSize/2; i++) { //16bpp only 67 mSize = newSize;
|
/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/ |
fgetstr.c | 68 __slbexpand(FILE *fp, size_t newsize)
73 ++newsize;
81 if ((size_t)fp->_lb._size >= newsize)
83 if ((p = realloc(fp->_lb._base, newsize)) == NULL)
86 fp->_lb._size = (int)newsize;
|
/external/dtc/ |
data.c | 42 int newsize; local 49 newsize = xlen; 51 while ((d.len + xlen) > newsize) 52 newsize *= 2; 54 nd.val = xrealloc(d.val, newsize);
|
/external/f2fs-tools/fsck/ |
xattr.c | 122 int found, newsize; local 168 newsize = XATTR_ALIGN(sizeof(struct f2fs_xattr_entry) + len + size); 180 if (free < newsize) { 210 memset(last, 0, newsize); 217 new_hsize += newsize;
|
/external/ltp/testcases/kernel/syscalls/mremap/ |
mremap02.c | 88 int newsize; /* new size of virtual memory block */ variable 107 * memory region (memsize) by newsize limits using 112 addr = mremap(addr, memsize, newsize, MREMAP_MAYMOVE); 121 if (munmap(addr, newsize) != 0) { 164 newsize = (memsize * 2);
|
mremap03.c | 89 int newsize; /* new size of virtual memory block */ variable 109 * memory region (memsize) by newsize limits 114 addr = mremap(addr, memsize, newsize, MREMAP_MAYMOVE); 123 if (munmap(addr, newsize) != 0) { 170 newsize = (memsize * 2);
|
/external/mesa3d/src/mesa/main/ |
imports.c | 196 _mesa_align_realloc(void *oldBuffer, size_t oldSize, size_t newSize, 201 return _aligned_realloc(oldBuffer, newSize, alignment); 203 const size_t copySize = (oldSize < newSize) ? oldSize : newSize; 204 void *newBuf = _mesa_align_malloc(newSize, alignment);
|
/frameworks/compile/slang/tests/P_reduce_general_input/ |
ScriptField_MyStruct.java.expect | 188 public synchronized void resize(int newSize) { 191 int copySize = Math.min(oldSize, newSize); 192 if (newSize == oldSize) return; 193 Item ni[] = new Item[newSize]; 198 mAllocation.resize(newSize);
|