/freebsd/sys/contrib/dev/acpica/compiler/ |
H A D | aslallocate.c | 223 UINT32 NewSize; in UtExpandLineBuffers() local 228 NewSize = AslGbl_LineBufferSize * 2; in UtExpandLineBuffers() 233 AslGbl_LineBufferSize, NewSize); in UtExpandLineBuffers() 236 UtReallocLineBuffers (&AslGbl_CurrentLineBuffer, AslGbl_LineBufferSize, NewSize); in UtExpandLineBuffers() 237 UtReallocLineBuffers (&AslGbl_MainTokenBuffer, AslGbl_LineBufferSize, NewSize); in UtExpandLineBuffers() 238 UtReallocLineBuffers (&AslGbl_MacroTokenBuffer, AslGbl_LineBufferSize, NewSize); in UtExpandLineBuffers() 242 AslGbl_LineBufferSize = NewSize; in UtExpandLineBuffers() 264 UINT32 NewSize) in UtReallocLineBuffers() argument 267 *Buffer = realloc (*Buffer, NewSize); in UtReallocLineBuffers() 270 memset (*Buffer + OldSize, 0, NewSize - OldSize); in UtReallocLineBuffers() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | vector.h | 54 void reserve(uptr NewSize) { in reserve() argument 56 if (NewSize > capacity()) in reserve() 57 reallocate(NewSize); in reserve() 59 void resize(uptr NewSize) { in resize() argument 60 if (NewSize > Size) { in resize() 61 reserve(NewSize); in resize() 62 memset(&Data[Size], 0, sizeof(T) * (NewSize - Size)); in resize() 64 Size = NewSize; in resize()
|
H A D | combined.h | 584 if (UNLIKELY(NewSize >= MaxAllowedMallocSize)) { 587 reportAllocationSizeTooBig(NewSize, 0, MaxAllowedMallocSize); 592 DCHECK_NE(NewSize, 0); 599 memcpy(NewPtr, OldPtr, (NewSize < OldSize) ? NewSize : OldSize); 647 if (reinterpret_cast<uptr>(OldTaggedPtr) + NewSize <= BlockEnd) { 648 if (NewSize > OldSize || (OldSize - NewSize) < getPageSizeCached()) { 650 (ClassId ? NewSize 659 NewSize, untagPointer(BlockEnd)); 675 memcpy(NewPtr, OldTaggedPtr, Min(NewSize, OldSize)); 1228 void resizeTaggedChunk(uptr OldPtr, uptr NewPtr, uptr NewSize, in resizeTaggedChunk() argument [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | StringMap.cpp | 212 unsigned NewSize; in RehashTable() local 217 NewSize = NumBuckets * 2; in RehashTable() 220 NewSize = NumBuckets; in RehashTable() 226 auto **NewTableArray = createTable(NewSize); in RehashTable() 227 unsigned *NewHashArray = getHashTable(NewTableArray, NewSize); in RehashTable() 237 unsigned NewBucket = FullHash & (NewSize - 1); in RehashTable() 241 NewBucket = (NewBucket + ProbeSize++) & (NewSize - 1); in RehashTable() 256 NumBuckets = NewSize; in RehashTable()
|
H A D | IntervalMap.cpp | 121 const unsigned *CurSize, unsigned NewSize[], in distribute() argument 134 Sum += NewSize[n] = PerNode + (n < Extra); in distribute() 136 PosPair = IdxPair(n, Position - (Sum - NewSize[n])); in distribute() 143 assert(NewSize[PosPair.first] && "Too few elements to need Grow"); in distribute() 144 --NewSize[PosPair.first]; in distribute() 150 assert(NewSize[n] <= Capacity && "Overallocated node"); in distribute() 151 Sum += NewSize[n]; in distribute()
|
H A D | SmallPtrSet.cpp | 94 void SmallPtrSetImplBase::Grow(unsigned NewSize) { in Grow() argument 100 const void **NewBuckets = (const void**) safe_malloc(sizeof(void*) * NewSize); in Grow() 104 CurArraySize = NewSize; in Grow() 105 memset(CurArray, -1, NewSize*sizeof(void*)); in Grow()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
H A D | FuzzerMutate.cpp | 102 if (!NewSize) in Mutate_CustomCrossOver() 105 memcpy(Data, U.data(), NewSize); in Mutate_CustomCrossOver() 106 return NewSize; in Mutate_CustomCrossOver() 447 size_t NewSize = 0; in Mutate_CrossOver() local 457 if (!NewSize) in Mutate_CrossOver() 467 return NewSize; in Mutate_CrossOver() 551 if (NewSize && NewSize <= MaxSize) { in MutateImpl() 553 ToASCII(Data, NewSize); in MutateImpl() 555 return NewSize; in MutateImpl() 582 assert(NewSize <= OneBits); in MutateWithMask() [all …]
|
H A D | FuzzerLoop.cpp | 744 size_t NewSize = 0; in MutateAndTestOne() local 747 NewSize = MD.MutateWithMask(CurrentUnitData, Size, Size, in MutateAndTestOne() 751 if (!NewSize) in MutateAndTestOne() 752 NewSize = MD.Mutate(CurrentUnitData, Size, CurrentMaxMutationLen); in MutateAndTestOne() 753 assert(NewSize > 0 && "Mutator returned empty unit"); in MutateAndTestOne() 755 Size = NewSize; in MutateAndTestOne() 921 size_t NewSize = MD.Mutate(CurrentUnitData, U.size(), MaxMutationLen); in MinimizeCrashLoop() local 922 assert(NewSize > 0 && NewSize <= MaxMutationLen); in MinimizeCrashLoop() 923 ExecuteCallback(CurrentUnitData, NewSize); in MinimizeCrashLoop() 924 PrintPulseAndReportSlowInput(CurrentUnitData, NewSize); in MinimizeCrashLoop() [all …]
|
H A D | FuzzerCorpus.h | 418 bool AddFeature(size_t Idx, uint32_t NewSize, bool Shrink) { in AddFeature() argument 419 assert(NewSize); in AddFeature() 422 if (OldSize == 0 || (Shrink && OldSize > NewSize)) { in AddFeature() 437 Printf("ADD FEATURE %zd sz %d\n", Idx, NewSize); in AddFeature() 440 InputSizesPerFeature[Idx] = NewSize; in AddFeature()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | PagedVector.h | 116 void resize(size_t NewSize) { in resize() argument 117 if (NewSize == 0) { in resize() 130 size_t NewLastPage = (NewSize - 1) / PageSize; in resize() 131 if (NewSize < Size) { in resize() 142 Size = NewSize; in resize()
|
H A D | IndexedMap.h | 70 unsigned NewSize = toIndex_(n) + 1; in grow() local 71 if (NewSize > storage_.size()) in grow() 72 resize(NewSize); in grow()
|
H A D | IntervalMap.h | 344 if (CurSize[n] == NewSize[n]) in adjustSiblingSizes() 352 if (CurSize[n] >= NewSize[n]) in adjustSiblingSizes() 362 if (CurSize[n] == NewSize[n]) in adjustSiblingSizes() 370 if (CurSize[n] >= NewSize[n]) in adjustSiblingSizes() 1952 unsigned NewSize = P.leafSize() - 1; in treeErase() local 1953 P.setSize(IM.height, NewSize); in treeErase() 1955 if (P.leafOffset() == NewSize) { in treeErase() 1993 P.setSize(Level, NewSize); in eraseNode() 1995 if (P.offset(Level) == NewSize) { in eraseNode() 2057 unsigned NewSize[4]; in overflow() local [all …]
|
H A D | SmallVector.h | 187 bool isSafeToReferenceAfterResize(const void *Elt, size_t NewSize) { in isSafeToReferenceAfterResize() argument 193 if (NewSize <= this->size()) in isSafeToReferenceAfterResize() 194 return Elt < this->begin() + NewSize; in isSafeToReferenceAfterResize() 197 return NewSize <= this->capacity(); in isSafeToReferenceAfterResize() 201 void assertSafeToReferenceAfterResize(const void *Elt, size_t NewSize) { in assertSafeToReferenceAfterResize() argument 202 assert(isSafeToReferenceAfterResize(Elt, NewSize) && in assertSafeToReferenceAfterResize() 244 size_t NewSize = This->size() + N; in reserveForParamAndGetAddressImpl() local 245 if (LLVM_LIKELY(NewSize <= This->capacity())) in reserveForParamAndGetAddressImpl() 256 This->grow(NewSize); in reserveForParamAndGetAddressImpl()
|
H A D | BitVector.h | 468 unsigned NewSize = Size + 1; in push_back() local 472 if (NewSize > getBitCapacity()) in push_back() 473 resize(NewSize, false); in push_back() 475 Size = NewSize; in push_back()
|
/freebsd/sys/contrib/edk2/Include/Library/ |
H A D | MemoryAllocationLib.h | 405 IN UINTN NewSize, 434 IN UINTN NewSize, 463 IN UINTN NewSize,
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64GlobalsTagging.cpp | 97 uint64_t NewSize = alignTo(SizeInBytes, kTagGranuleSize); in tagGlobalDefinition() local 98 if (SizeInBytes != NewSize) { in tagGlobalDefinition() 100 llvm::SmallVector<uint8_t> Init(NewSize - SizeInBytes, 0); in tagGlobalDefinition()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | LoopPass.cpp | 207 unsigned NewSize = F.getInstructionCount(); in runOnFunction() local 210 if (NewSize != FunctionSize) { in runOnFunction() 211 int64_t Delta = static_cast<int64_t>(NewSize) - in runOnFunction() 216 FunctionSize = NewSize; in runOnFunction()
|
H A D | TypeBasedAliasAnalysis.cpp | 770 uint64_t NewSize = InnerSize->getZExtValue(); in shiftTBAAStruct() local 774 NewSize -= Offset - InnerOffset->getZExtValue(); in shiftTBAAStruct() 781 ConstantInt::get(InnerSize->getType(), NewSize))); in shiftTBAAStruct()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | PerThreadBumpPtrAllocator.h | 96 void setRedZoneSize(size_t NewSize) { in setRedZoneSize() argument 98 Allocators[Idx].setRedZoneSize(NewSize); in setRedZoneSize()
|
H A D | OnDiskHashTable.h | 96 void resize(size_t NewSize) { in resize() argument 98 safe_calloc(NewSize, sizeof(Bucket))); in resize() 104 insert(NewBuckets, NewSize, E); in resize() 109 NumBuckets = NewSize; in resize()
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
H A D | TpiStreamBuilder.cpp | 45 size_t NewSize = TypeRecordBytes + Size; in updateTypeIndexOffsets() local 47 if (NewSize / EightKB > TypeRecordBytes / EightKB || TypeRecordCount == 0) { in updateTypeIndexOffsets() 54 TypeRecordBytes = NewSize; in updateTypeIndexOffsets()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-diff/lib/ |
H A D | DifferenceEngine.cpp | 68 unsigned NewSize = Storage.size() - 1; in remove_min() local 69 if (NewSize) { in remove_min() 72 Storage[0] = Storage[NewSize]; in remove_min() 74 std::swap(Storage[0], Storage[NewSize]); in remove_min() 84 if (R >= NewSize) { in remove_min() 86 if (L >= NewSize) break; in remove_min()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | MemoryLocation.h | 312 MemoryLocation getWithNewSize(LocationSize NewSize) const { in getWithNewSize() argument 314 Copy.Size = NewSize; in getWithNewSize()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | PaddingChecker.cpp | 305 CharUnits NewSize = NewOffset.alignTo(RL.getAlignment()); in calculateOptimalPad() local 306 NewPad += NewSize - NewOffset; in calculateOptimalPad()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVExpandPseudoInsts.cpp | 82 const unsigned NewSize = getInstSizeInBytes(MF); in runOnMachineFunction() local 83 assert(OldSize >= NewSize); in runOnMachineFunction() 457 const unsigned NewSize = getInstSizeInBytes(MF); in runOnMachineFunction() local 458 assert(OldSize >= NewSize); in runOnMachineFunction()
|