HomeSort by relevance Sort by last modified time
    Searched full:newsize (Results 26 - 50 of 1060) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/kmod/shared/
strbuf.c 31 static bool buf_grow(struct strbuf *buf, size_t newsize)
36 if (newsize <= buf->size)
39 if (newsize % BUF_STEP == 0)
40 sz = newsize;
42 sz = ((newsize / BUF_STEP) + 1) * BUF_STEP;
  /external/bsdiff/
bsdiff.cc 50 size_t newsize, const char* patch_filename,
53 return bsdiff(old_buf, oldsize, new_buf, newsize, 0, &patch,
58 size_t newsize, PatchWriterInterface* patch,
60 return bsdiff(old_buf, oldsize, new_buf, newsize, 0, patch,
65 size_t newsize, size_t min_length, PatchWriterInterface* patch,
93 DiffEncoder diff_encoder(patch, old_buf, oldsize, new_buf, newsize);
100 while(scan<newsize) {
110 for(scsc=scan+=len;scan<newsize;scan++) {
115 sai->SearchPrefix(new_buf + scan, newsize - scan, &len, &pos);
141 if((len!=oldscore) || (scan==newsize)) {
    [all...]
  /device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/
MemoryAllocationLib.c 78 Allocates and zeros the number bytes specified by NewSize from memory of type
80 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
82 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
85 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
89 @param NewSize The size, in bytes, of the buffer to reallocate.
100 IN UINTN NewSize,
106 NewBuffer = AllocatePool (NewSize);
  /device/linaro/bootloader/edk2/ArmVirtPkg/Library/ArmVirtPlatformLib/
Virt.c 76 UINT64 NewSize, CurSize;
83 NewSize = 0;
122 NewSize = CurSize;
135 PcdStatus = PcdSet64S (PcdSystemMemorySize, NewSize);
146 ASSERT (NewSize >= SIZE_128MB);
150 ((UINT64)PcdGet64 (PcdFdBaseAddress) >= (NewBase + NewSize)));
  /external/bsdiff/include/bsdiff/
bsdiff.h 25 size_t newsize,
33 size_t newsize,
49 size_t newsize,
  /external/dng_sdk/source/
dng_string_list.cpp 52 uint32 newSize = Max_uint32 (minSize, fAllocated * 2);
55 malloc (newSize * sizeof (dng_string *));
80 fAllocated = newSize;
  /external/syslinux/gpxe/src/util/
padimg.pl 26 my $newsize = ( $oldsize + $padsize );
30 $filename, $oldsize, $newsize, $padsize, $byte;
39 truncate $filename, $newsize
  /frameworks/base/core/java/android/text/
AutoGrowArray.java 79 public void resize(@IntRange(from = 0) int newSize) {
80 if (newSize > mValues.length) {
81 ensureCapacity(newSize - mSize);
83 mSize = newSize;
188 public void resize(@IntRange(from = 0) int newSize) {
189 if (newSize > mValues.length) {
190 ensureCapacity(newSize - mSize);
192 mSize = newSize;
297 public void resize(@IntRange(from = 0) int newSize) {
298 if (newSize > mValues.length)
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
lstring.c 64 void luaS_resize (lua_State *L, int newsize) {
69 if (newsize > tb->size) {
70 luaM_reallocvector(L, tb->hash, tb->size, newsize, GCObject *);
71 for (i = tb->size; i < newsize; i++) tb->hash[i] = NULL;
79 unsigned int h = lmod(gco2ts(p)->hash, newsize); /* new position */
86 if (newsize < tb->size) {
88 lua_assert(tb->hash[newsize] == NULL && tb->hash[tb->size - 1] == NULL);
89 luaM_reallocvector(L, tb->hash, tb->size, newsize, GCObject *);
91 tb->size = newsize;
  /device/linaro/bootloader/edk2/StdLib/LibC/StdLib/
Malloc.c 192 the size specified by NewSize.
207 If NewSize is zero and Ptr is not a null pointer, the object it points to
214 The following combinations of Ptr and NewSize can occur:<BR>
215 Ptr NewSize<BR>
218 - NULL > 0 Same as malloc(NewSize)
220 - valid NewSize >= OldSize Returns malloc(NewSize) with Oldsize bytes copied from Ptr
221 - valid NewSize < OldSize Returns new buffer with Oldsize bytes copied from Ptr
226 @param NewSize Size, in bytes, of the new object to allocate space for.
230 region of the requested size is returned. If NewSize is zero,
    [all...]
  /external/deqp/framework/opengl/
gluObjectWrapper.cpp 101 void ObjectVector::resize (size_t newSize)
105 if (newSize == 0)
109 if (oldSize < newSize)
111 m_objects.resize(newSize, 0);
112 (m_gl.*m_traits.genFunc)(glw::GLsizei(newSize - oldSize), &m_objects[oldSize]);
114 else if (oldSize > newSize)
116 (m_gl.*m_traits.deleteFunc)(glw::GLsizei(oldSize - newSize), &m_objects[newSize]);
117 m_objects.resize(newSize);
  /external/icu/icu4c/source/common/
uvectr64.cpp 191 * Change the size of this vector as follows: If newSize is smaller,
193 * newSize. If newSize is larger, grow the array, filling in new
196 void UVector64::setSize(int32_t newSize) {
198 if (newSize < 0) {
201 if (newSize > count) {
203 if (!ensureCapacity(newSize, ec)) {
206 for (i=count; i<newSize; ++i) {
210 count = newSize;
  /external/sfntly/cpp/src/test/tinyxml/
tinystr.cpp 70 size_type newsize = length() + len; local
71 if (newsize > capacity())
73 reserve (newsize + capacity());
76 set_size(newsize);
  /external/syslinux/com32/lua/src/
lstring.c 64 void luaS_resize (lua_State *L, int newsize) {
69 if (newsize > tb->size) {
70 luaM_reallocvector(L, tb->hash, tb->size, newsize, GCObject *);
71 for (i = tb->size; i < newsize; i++) tb->hash[i] = NULL;
79 unsigned int h = lmod(gco2ts(p)->hash, newsize); /* new position */
86 if (newsize < tb->size) {
88 lua_assert(tb->hash[newsize] == NULL && tb->hash[tb->size - 1] == NULL);
89 luaM_reallocvector(L, tb->hash, tb->size, newsize, GCObject *);
91 tb->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);
  /hardware/google/av/codec2/vndk/internal/
C2ParamInternal.h 84 void TrimParam(C2Param *param, uint32_t newSize) {
85 if (param && *param && param->size() > newSize && newSize >= sizeof(C2Param)) {
86 param->_mSize = newSize;
  /external/ltp/testcases/kernel/syscalls/mremap/
mremap01.c 93 int newsize; /* new size of virtual memory block */ variable
111 * memory region (memsize) by newsize limits.
113 addr = mremap(addr, memsize, newsize, MREMAP_MAYMOVE);
124 for (ind = 0; ind < newsize; ind++) {
133 if (msync(addr, newsize, MS_SYNC) != 0) {
174 newsize = (memsize * 2);
205 /* Stretch the file to newsize of virtual memory block */
206 if (lseek(fildes, (off_t) newsize, SEEK_SET) != (off_t) newsize) {
208 "error=%d : %s", newsize, errno, strerror(errno))
    [all...]
mremap04.c 98 int newsize; /* new size of virtual memory block */ variable
119 * memory region of newsize by newsize limits
125 addr = mremap(shmaddr, memsize, newsize, 0);
134 if (munmap(addr, newsize) != 0) {
161 * newsize after resize,
162 * Create a named shared memory segment SHMKEY of newsize and mode SHM_MODE
186 newsize = (memsize * 2);
193 * specified size 'newsize' and mode permissions 'SHM_MODE'.
195 shmid = shmget(shmkey, newsize, IPC_CREAT | SHM_MODE)
    [all...]
  /packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
allocators.h 45 // \param newSize the new size in bytes.
46 void* Realloc(void* originalPtr, size_t originalSize, size_t newSize);
71 void* Realloc(void* originalPtr, size_t originalSize, size_t newSize) {
73 if (newSize == 0) {
77 return std::realloc(originalPtr, newSize);
190 void* Realloc(void* originalPtr, size_t originalSize, size_t newSize) {
192 return Malloc(newSize);
194 if (newSize == 0)
198 if (originalSize >= newSize)
203 size_t increment = static_cast<size_t>(newSize - originalSize);
    [all...]
  /system/chre/util/include/chre/util/
fixed_size_vector_impl.h 190 void FixedSizeVector<ElementType, kCapacity>::resize(size_t newSize) {
191 CHRE_ASSERT(newSize <= kCapacity);
192 if (newSize > kCapacity) {
193 newSize = kCapacity;
196 if (newSize > size()) {
197 for (size_t i = size(); i < newSize; i++) {
201 for (size_t i = newSize; i < size(); i++) {
205 mSize = newSize;
  /external/llvm/lib/Fuzzer/
FuzzerMutate.cpp 85 size_t NewSize = EF->LLVMFuzzerCustomCrossOver(
87 if (!NewSize)
89 assert(NewSize <= MaxSize && "CustomCrossOver returned overisized unit");
90 memcpy(Data, U.data(), NewSize);
91 return NewSize;
220 size_t NewSize =
222 assert(NewSize > 0 && "CrossOver returned empty unit");
223 assert(NewSize <= MaxSize && "CrossOver returned overisized unit");
224 memcpy(Data, U.data(), NewSize);
225 return NewSize;
    [all...]
  /external/dtc/tests/
del_node.c 37 int oldsize, delsize, newsize; local
114 newsize = fdt_totalsize(fdt);
116 verbose_printf("oldsize = %d, delsize = %d, newsize = %d\n",
117 oldsize, delsize, newsize);
119 if (newsize >= oldsize)
  /external/mesa3d/src/gallium/auxiliary/util/
u_dynarray.h 64 util_dynarray_resize(struct util_dynarray *buf, unsigned newsize)
67 if(newsize > buf->capacity)
70 if(newsize > newcap)
71 newcap = newsize;
77 buf->size = newsize;
  /device/linaro/bootloader/edk2/MdePkg/Library/UefiMemoryAllocationLib/
MemoryAllocationLib.c 663 Allocates and zeros the number bytes specified by NewSize from memory of the type
665 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
667 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
670 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
675 @param NewSize The size, in bytes, of the buffer to reallocate.
686 IN UINTN NewSize,
692 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize);
694 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));
703 Allocates and zeros the number bytes specified by NewSize from memory of type
705 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
    [all...]
  /external/llvm/lib/Support/
IntervalMap.cpp 121 const unsigned *CurSize, unsigned NewSize[],
134 Sum += NewSize[n] = PerNode + (n < Extra);
136 PosPair = IdxPair(n, Position - (Sum - NewSize[n]));
143 assert(NewSize[PosPair.first] && "Too few elements to need Grow");
144 --NewSize[PosPair.first];
150 assert(NewSize[n] <= Capacity && "Overallocated node");
151 Sum += NewSize[n];

Completed in 751 milliseconds

12 3 4 5 6 7 8 91011>>