Searched refs:newSize (Results 1 - 20 of 20) sorted by relevance

/netbsd-current/external/gpl3/gcc.old/dist/libphobos/src/std/experimental/allocator/building_blocks/
H A Dfallback_allocator.d117 primary.reallocate(b, newSize)) is attempted. If it fails, an attempt is
121 newSize)) is attempted. If that fails, an attempt is made to move the
126 bool reallocate(ref void[] b, size_t newSize)
130 auto b1 = to.allocate(newSize);
131 if (b1.length != newSize) return false;
132 if (b.length < newSize) b1[0 .. b.length] = b[];
133 else b1[] = b[0 .. newSize];
142 return primary.reallocate(b, newSize)
146 return fallback.reallocate(b, newSize)
154 bool alignedReallocate(ref void[] b, size_t newSize, uin
[all...]
H A Dbitmapped_block.d538 @system bool reallocate(ref void[] b, size_t newSize)
542 b = allocate(newSize);
543 return b.length == newSize;
545 if (newSize == 0)
551 if (newSize < b.length)
554 auto newCapacity = bytes2blocks(newSize) * blockSize;
556 b = b[0 .. newSize];
560 return .reallocate(this, b, newSize);
566 @system bool alignedReallocate(ref void[] b, size_t newSize, uint a)
568 if (newSize
[all...]
/netbsd-current/external/gpl3/gcc.old/dist/libphobos/src/std/experimental/allocator/
H A Dgc_allocator.d43 immutable newSize = GC.extend(b.ptr, sizeRequest, sizeRequest);
44 if (newSize == 0)
49 assert(newSize >= desired);
56 pure nothrow @system bool reallocate(ref void[] b, size_t newSize) shared
61 auto p = cast(ubyte*) GC.realloc(b.ptr, newSize);
62 b = p[0 .. newSize];
H A Dmallocator.d281 $(D alignedReallocate(b, newSize, platformAlignment)).
285 bool reallocate(ref void[] b, size_t newSize) shared
287 return Mallocator.instance.reallocate(b, newSize);
291 bool reallocate(ref void[] b, size_t newSize) shared
293 return alignedReallocate(b, newSize, alignment);
300 $(D __aligned_realloc(b.ptr, newSize, a))).
/netbsd-current/external/gpl3/gcc/dist/libphobos/src/std/experimental/allocator/building_blocks/
H A Dfallback_allocator.d156 primary.reallocate(b, newSize)) is attempted. If it fails, an attempt is
160 newSize)) is attempted. If that fails, an attempt is made to move the
165 bool reallocate(ref void[] b, size_t newSize)
169 auto b1 = to.allocate(newSize);
170 if (b1.length != newSize) return false;
171 if (b.length < newSize) b1[0 .. b.length] = b[];
172 else b1[] = b[0 .. newSize];
181 return primary.reallocate(b, newSize)
185 return fallback.reallocate(b, newSize)
193 bool alignedReallocate(ref void[] b, size_t newSize, uin
[all...]
H A Dbitmapped_block.d705 @system bool reallocate(ref void[] b, size_t newSize)
713 return reallocateImpl(b, newSize);
717 private @system bool reallocateImpl(ref void[] b, size_t newSize)
734 b = allocateImpl(newSize);
735 return b.length == newSize;
737 if (newSize == 0)
743 if (newSize < b.length)
746 auto newCapacity = bytes2blocks(newSize) * blockSize;
748 b = b[0 .. newSize];
752 return slowReallocate(this, b, newSize);
[all...]
/netbsd-current/external/gpl3/gcc/dist/libphobos/src/std/experimental/allocator/
H A Dgc_allocator.d48 immutable newSize = GC.extend(b.ptr, sizeRequest, sizeRequest);
49 if (newSize == 0)
54 assert(newSize >= desired);
61 pure nothrow @system bool reallocate(ref void[] b, size_t newSize) shared const
66 auto p = cast(ubyte*) GC.realloc(b.ptr, newSize);
67 b = p[0 .. newSize];
H A Dmallocator.d300 Forwards to $(D alignedReallocate(b, newSize, platformAlignment)).
305 bool reallocate(ref void[] b, size_t newSize) shared
307 return alignedReallocate(b, newSize, alignment);
315 $(D __aligned_realloc(b.ptr, newSize, a))).
/netbsd-current/usr.bin/make/
H A Dhash.c217 unsigned int newSize = 2 * oldSize; local
218 unsigned int newMask = newSize - 1;
219 HashEntry **newBuckets = bmake_malloc(sizeof *newBuckets * newSize);
222 for (i = 0; i < newSize; i++)
237 t->bucketsSize = newSize;
/netbsd-current/external/gpl3/gcc.old/dist/libphobos/libdruntime/gcc/
H A Demutls.d267 auto newSize = arr.length * 2;
268 if (offset > newSize)
269 newSize = offset + 32;
270 arr.length = newSize;
/netbsd-current/external/gpl3/gcc/dist/libphobos/libdruntime/gcc/
H A Demutls.d268 auto newSize = arr.length * 2;
269 if (offset > newSize)
270 newSize = offset + 32;
271 arr.length = newSize;
/netbsd-current/external/bsd/byacc/dist/test/
H A Dexpr.oxout.y189 long oldSize,newSize;
206 newSize = (3*oldSize)/2;
207 if (newSize < 100) newSize = 100;
211 fprintf(stderr,msg2,which,newSize);
/netbsd-current/external/gpl3/binutils/dist/gprofng/src/
H A DTable.cc1380 long newSize = ddscr->getSize (); local
1381 if (ddsize == newSize)
1391 assert (tmpView->getSize () == newSize);
1392 while (ddsize < newSize)
1402 while (ddsize < newSize)
/netbsd-current/external/bsd/byacc/dist/test/yacc/
H A Dexpr.oxout.tab.c388 long oldSize,newSize; local
405 newSize = (3*oldSize)/2;
406 if (newSize < 100) newSize = 100;
410 fprintf(stderr,msg2,which,newSize);
/netbsd-current/external/bsd/byacc/dist/test/btyacc/
H A Dexpr.oxout.tab.c538 long oldSize,newSize; local
555 newSize = (3*oldSize)/2;
556 if (newSize < 100) newSize = 100;
560 fprintf(stderr,msg2,which,newSize);
/netbsd-current/sys/arch/shark/ofw/
H A Dofw.c1811 vsize_t newSize, claim_size; local
1831 newSize = (*ppLeftover)->size - size; /* reduce size */
1836 (*ppLeftover)->size = newSize;
/netbsd-current/external/mit/expat/dist/lib/
H A Dxmlparse.c6932 size_t newSize = (size_t)1 << newPower; local
6933 unsigned long newMask = (unsigned long)newSize - 1;
6936 if (newSize > (size_t)(-1) / sizeof(NAMED *)) {
6940 size_t tsize = newSize * sizeof(NAMED *);
6953 j < step ? (j += newSize - step) : (j -= step);
6960 table->size = newSize;
6966 i < step ? (i += newSize - step) : (i -= step);
/netbsd-current/external/gpl3/gcc.old/dist/libphobos/src/std/algorithm/
H A Dsorting.d2475 size_t newSize = 1<<(bsr(minCapacity)+1);
2477 if (newSize < minCapacity) newSize = minCapacity;
2479 if (__ctfe) temp.length = newSize;
2480 else temp = () @trusted { return uninitializedArray!(T[])(newSize); }();
/netbsd-current/external/gpl3/gcc/dist/libphobos/src/std/algorithm/
H A Dsorting.d2598 size_t newSize = 1<<(bsr(minCapacity)+1);
2600 if (newSize < minCapacity) newSize = minCapacity;
2602 if (__ctfe) temp.length = newSize;
2603 else temp = () @trusted { return uninitializedArray!(T[])(newSize); }();
/netbsd-current/external/public-domain/sqlite/dist/
H A Dsqlite3.c28132 int newSize; local
59403 i64 currentSize, newSize; local
173196 int newSize; local
204467 u32 newSize = pParse->nBlob + delta; local
231521 int newSize; local
[all...]

Completed in 797 milliseconds