/freebsd-11-stable/sys/contrib/dev/acpica/compiler/ |
H A D | aslallocate.c | 223 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 D | vector.h | 60 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 D | combined.h | 346 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 D | StringMap.cpp | 201 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 D | IntervalMap.cpp | 120 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 D | SmallPtrSet.cpp | 94 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 D | IndexedMap.h | 68 unsigned NewSize = toIndex_(n) + 1; local 69 if (NewSize > storage_.size()) 70 resize(NewSize);
|
H A D | IntervalMap.h | 335 /// @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 D | BitVector.h | 508 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 D | MemoryAllocationLib.h | 389 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 D | FuzzerMutate.cpp | 83 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 D | FuzzerCorpus.h | 217 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 D | FuzzerLoop.cpp | 683 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 D | TpiStreamBuilder.cpp | 50 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 D | LoopPass.cpp | 229 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 D | scudo_allocator.cpp | 490 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 D | AliasSetTracker.h | 77 bool updateSizeAndAAInfo(LocationSize NewSize, const AAMDNodes &NewAAInfo) { argument 79 if (NewSize != Size) { 81 Size = isSizeSet() ? Size.unionWith(NewSize) : NewSize;
|
H A D | MemoryLocation.h | 254 MemoryLocation getWithNewSize(LocationSize NewSize) const { 256 Copy.Size = NewSize;
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | OnDiskHashTable.h | 97 void resize(size_t NewSize) { argument 99 safe_calloc(NewSize, sizeof(Bucket))); 105 insert(NewBuckets, NewSize, E); 110 NumBuckets = NewSize;
|
H A D | Allocator.h | 356 void setRedZoneSize(size_t NewSize) { argument 357 RedZoneSize = NewSize;
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | PaddingChecker.cpp | 299 CharUnits NewSize = NewOffset.alignTo(RL.getAlignment()); local 300 NewPad += NewSize - NewOffset;
|
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-diff/ |
H A D | DifferenceEngine.cpp | 67 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 D | MachineCombiner.cpp | 91 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 D | AMDGPUPromoteAlloca.cpp | 774 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 D | SeparateConstOffsetFromGEP.cpp | 637 unsigned NewSize = 0; local 640 UserChain[NewSize] = I; 641 NewSize++; 644 UserChain.resize(NewSize);
|