Searched refs:NewSize (Results 1 - 25 of 41) sorted by relevance

12

/freebsd-11-stable/sys/contrib/dev/acpica/compiler/
H A Daslallocate.c223 UINT32 NewSize; local
228 NewSize = Gbl_LineBufferSize * 2;
233 Gbl_LineBufferSize, NewSize);
236 UtReallocLineBuffers (&Gbl_CurrentLineBuffer, Gbl_LineBufferSize, NewSize);
237 UtReallocLineBuffers (&Gbl_MainTokenBuffer, Gbl_LineBufferSize, NewSize);
238 UtReallocLineBuffers (&Gbl_MacroTokenBuffer, Gbl_LineBufferSize, NewSize);
239 UtReallocLineBuffers (&Gbl_ExpressionTokenBuffer, Gbl_LineBufferSize, NewSize);
242 Gbl_LineBufferSize = NewSize;
252 * NewSize - New size of Buffer
264 UINT32 NewSize)
261 UtReallocLineBuffers( char **Buffer, UINT32 OldSize, UINT32 NewSize) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dvector.h60 void reserve(uptr NewSize) { argument
62 if (NewSize > capacity())
63 reallocate(NewSize);
65 void resize(uptr NewSize) { argument
66 if (NewSize > Size) {
67 reserve(NewSize);
68 memset(&Data[Size], 0, sizeof(T) * (NewSize - Size));
70 Size = NewSize;
H A Dcombined.h346 void *reallocate(void *OldPtr, uptr NewSize, uptr Alignment = MinAlignment) { argument
351 DCHECK_NE(NewSize, 0);
356 void *NewPtr = allocate(NewSize, Chunk::Origin::Malloc, Alignment);
358 memcpy(NewPtr, OldPtr, (NewSize < OldSize) ? NewSize : OldSize);
398 if (reinterpret_cast<uptr>(OldPtr) + NewSize <= BlockEnd) {
400 OldSize < NewSize ? NewSize - OldSize : OldSize - NewSize;
404 (ClassId ? NewSize
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/
H A DStringMap.cpp201 unsigned NewSize; local
208 NewSize = NumBuckets*2;
211 NewSize = NumBuckets;
220 safe_calloc(NewSize+1, sizeof(StringMapEntryBase *) + sizeof(unsigned)));
222 unsigned *NewHashArray = (unsigned *)(NewTableArray + NewSize + 1);
223 NewTableArray[NewSize] = (StringMapEntryBase*)2;
232 unsigned NewBucket = FullHash & (NewSize-1);
234 NewTableArray[FullHash & (NewSize-1)] = Bucket;
235 NewHashArray[FullHash & (NewSize-1)] = FullHash;
244 NewBucket = (NewBucket + ProbeSize++) & (NewSize
[all...]
H A DIntervalMap.cpp120 const unsigned *CurSize, unsigned NewSize[],
133 Sum += NewSize[n] = PerNode + (n < Extra);
135 PosPair = IdxPair(n, Position - (Sum - NewSize[n]));
142 assert(NewSize[PosPair.first] && "Too few elements to need Grow");
143 --NewSize[PosPair.first];
149 assert(NewSize[n] <= Capacity && "Overallocated node");
150 Sum += NewSize[n];
119 distribute(unsigned Nodes, unsigned Elements, unsigned Capacity, const unsigned *CurSize, unsigned NewSize[], unsigned Position, bool Grow) argument
H A DSmallPtrSet.cpp94 void SmallPtrSetImplBase::Grow(unsigned NewSize) {
100 const void **NewBuckets = (const void**) safe_malloc(sizeof(void*) * NewSize);
104 CurArraySize = NewSize;
105 memset(CurArray, -1, NewSize*sizeof(void*));
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ADT/
H A DIndexedMap.h68 unsigned NewSize = toIndex_(n) + 1; local
69 if (NewSize > storage_.size())
70 resize(NewSize);
H A DIntervalMap.h335 /// @param NewSize Array of desired node sizes.
338 unsigned CurSize[], const unsigned NewSize[]) {
341 if (CurSize[n] == NewSize[n])
345 NewSize[n] - CurSize[n]);
349 if (CurSize[n] >= NewSize[n])
359 if (CurSize[n] == NewSize[n])
363 CurSize[n] - NewSize[n]);
367 if (CurSize[n] >= NewSize[n])
374 assert(CurSize[n] == NewSize[n] && "Insufficient element shuffle");
388 /// NewSize[] wil
337 adjustSiblingSizes(NodeT *Node[], unsigned Nodes, unsigned CurSize[], const unsigned NewSize[]) argument
[all...]
H A DBitVector.h508 unsigned NewSize = Size + 1;
512 if (NewSize > getBitCapacity())
513 resize(NewSize, false);
515 Size = NewSize;
884 void grow(unsigned NewSize) {
885 size_t NewCapacity = std::max<size_t>(NumBitWords(NewSize), Bits.size() * 2);
/freebsd-11-stable/sys/contrib/edk2/Include/Library/
H A DMemoryAllocationLib.h389 Allocates and zeros the number bytes specified by NewSize from memory of type
391 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
393 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
396 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
400 @param NewSize The size, in bytes, of the buffer to reallocate.
411 IN UINTN NewSize,
418 Allocates and zeros the number bytes specified by NewSize from memory of type
420 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
422 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
425 If the allocation of the new buffer is successful and the smaller of NewSize an
[all...]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerMutate.cpp83 size_t NewSize = EF->LLVMFuzzerCustomCrossOver( local
85 if (!NewSize)
87 assert(NewSize <= MaxSize && "CustomCrossOver returned overisized unit");
88 memcpy(Data, U.data(), NewSize);
89 return NewSize;
430 size_t NewSize = 0;
433 NewSize = CrossOver(Data, Size, O.data(), O.size(), U.data(), U.size());
436 NewSize = InsertPartOf(O.data(), O.size(), U.data(), U.size(), MaxSize);
437 if (!NewSize)
438 NewSize
[all...]
H A DFuzzerCorpus.h217 bool AddFeature(size_t Idx, uint32_t NewSize, bool Shrink) {
218 assert(NewSize);
221 if (OldSize == 0 || (Shrink && OldSize > NewSize)) {
234 Printf("ADD FEATURE %zd sz %d\n", Idx, NewSize);
236 InputSizesPerFeature[Idx] = NewSize;
H A DFuzzerLoop.cpp683 size_t NewSize = 0; local
686 NewSize = MD.MutateWithMask(CurrentUnitData, Size, Size,
690 if (!NewSize)
691 NewSize = MD.Mutate(CurrentUnitData, Size, CurrentMaxMutationLen);
692 assert(NewSize > 0 && "Mutator returned empty unit");
693 assert(NewSize <= CurrentMaxMutationLen && "Mutator return oversized unit");
694 Size = NewSize;
846 size_t NewSize = MD.Mutate(CurrentUnitData, U.size(), MaxMutationLen); local
847 assert(NewSize > 0 && NewSize <
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DTpiStreamBuilder.cpp50 size_t NewSize = TypeRecordBytes + Record.size(); local
52 if (NewSize / EightKB > TypeRecordBytes / EightKB || TypeRecords.empty()) {
58 TypeRecordBytes = NewSize;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DLoopPass.cpp229 unsigned NewSize = F.getInstructionCount(); local
232 if (NewSize != FunctionSize) {
233 int64_t Delta = static_cast<int64_t>(NewSize) -
238 FunctionSize = NewSize;
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/scudo/
H A Dscudo_allocator.cpp490 void *reallocate(void *OldPtr, uptr NewSize) { argument
496 void *NewPtr = allocate(NewSize, MinAlignment, FromMalloc);
498 memcpy(NewPtr, OldPtr, (NewSize < OldSize) ? NewSize : OldSize);
520 if (NewSize <= UsableSize &&
521 (UsableSize - NewSize) < (SizeClassMap::kMaxSize / 2)) {
524 OldHeader.ClassId ? NewSize : UsableSize - NewSize;
530 void *NewPtr = allocate(NewSize, MinAlignment, FromMalloc);
534 memcpy(NewPtr, OldPtr, Min(NewSize, UsableSiz
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DAliasSetTracker.h77 bool updateSizeAndAAInfo(LocationSize NewSize, const AAMDNodes &NewAAInfo) { argument
79 if (NewSize != Size) {
81 Size = isSizeSet() ? Size.unionWith(NewSize) : NewSize;
H A DMemoryLocation.h254 MemoryLocation getWithNewSize(LocationSize NewSize) const {
256 Copy.Size = NewSize;
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DOnDiskHashTable.h97 void resize(size_t NewSize) { argument
99 safe_calloc(NewSize, sizeof(Bucket)));
105 insert(NewBuckets, NewSize, E);
110 NumBuckets = NewSize;
H A DAllocator.h356 void setRedZoneSize(size_t NewSize) { argument
357 RedZoneSize = NewSize;
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DPaddingChecker.cpp299 CharUnits NewSize = NewOffset.alignTo(RL.getAlignment()); local
300 NewPad += NewSize - NewOffset;
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-diff/
H A DDifferenceEngine.cpp67 unsigned NewSize = Storage.size() - 1; local
68 if (NewSize) {
71 Storage[0] = Storage[NewSize];
73 std::swap(Storage[0], Storage[NewSize]);
83 if (R >= NewSize) {
85 if (L >= NewSize) break;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineCombiner.cpp91 bool doSubstitute(unsigned NewSize, unsigned OldSize, bool OptForSize);
419 bool MachineCombiner::doSubstitute(unsigned NewSize, unsigned OldSize,
421 if (OptForSize && (NewSize < OldSize))
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp774 uint32_t NewSize = alignTo(CurrentLocalMemUsage, Align); local
776 NewSize += AllocSize;
778 if (NewSize > LocalMemLimit) {
784 CurrentLocalMemUsage = NewSize;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp637 unsigned NewSize = 0; local
640 UserChain[NewSize] = I;
641 NewSize++;
644 UserChain.resize(NewSize);

Completed in 179 milliseconds

12