/third_party/json/test/thirdparty/Fuzzer/test/ |
D | FuzzerUnittest.cpp | 73 size_t NewSize = MD.CrossOver(A.data(), A.size(), B.data(), B.size(), in TEST() local 75 C.resize(NewSize); in TEST() 122 size_t NewSize = (MD.*M)(T, sizeof(T), sizeof(T)); in TestEraseBytes() local 123 if (NewSize == 7 && !memcmp(REM0, T, 7)) FoundMask |= 1 << 0; in TestEraseBytes() 124 if (NewSize == 7 && !memcmp(REM1, T, 7)) FoundMask |= 1 << 1; in TestEraseBytes() 125 if (NewSize == 7 && !memcmp(REM2, T, 7)) FoundMask |= 1 << 2; in TestEraseBytes() 126 if (NewSize == 7 && !memcmp(REM3, T, 7)) FoundMask |= 1 << 3; in TestEraseBytes() 127 if (NewSize == 7 && !memcmp(REM4, T, 7)) FoundMask |= 1 << 4; in TestEraseBytes() 128 if (NewSize == 7 && !memcmp(REM5, T, 7)) FoundMask |= 1 << 5; in TestEraseBytes() 129 if (NewSize == 7 && !memcmp(REM6, T, 7)) FoundMask |= 1 << 6; in TestEraseBytes() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | StringMap.cpp | 197 unsigned NewSize; in RehashTable() local 204 NewSize = NumBuckets*2; in RehashTable() 207 NewSize = NumBuckets; in RehashTable() 216 (StringMapEntryBase **)calloc(NewSize+1, sizeof(StringMapEntryBase *) + in RehashTable() 218 unsigned *NewHashArray = (unsigned *)(NewTableArray + NewSize + 1); in RehashTable() 219 NewTableArray[NewSize] = (StringMapEntryBase*)2; in RehashTable() 228 unsigned NewBucket = FullHash & (NewSize-1); in RehashTable() 230 NewTableArray[FullHash & (NewSize-1)] = Bucket; in RehashTable() 231 NewHashArray[FullHash & (NewSize-1)] = FullHash; in RehashTable() 240 NewBucket = (NewBucket + ProbeSize++) & (NewSize-1); in RehashTable() [all …]
|
D | SmallPtrSet.cpp | 118 void SmallPtrSetImplBase::Grow(unsigned NewSize) { in Grow() argument 124 CurArray = (const void**)malloc(sizeof(void*) * NewSize); in Grow() 126 CurArraySize = NewSize; in Grow() 127 memset(CurArray, -1, NewSize*sizeof(void*)); in Grow()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | StringMap.cpp | 201 unsigned NewSize; in RehashTable() local 208 NewSize = NumBuckets*2; in RehashTable() 211 NewSize = NumBuckets; in RehashTable() 220 safe_calloc(NewSize+1, sizeof(StringMapEntryBase *) + sizeof(unsigned))); in RehashTable() 222 unsigned *NewHashArray = (unsigned *)(NewTableArray + NewSize + 1); in RehashTable() 223 NewTableArray[NewSize] = (StringMapEntryBase*)2; in RehashTable() 232 unsigned NewBucket = FullHash & (NewSize-1); in RehashTable() 234 NewTableArray[FullHash & (NewSize-1)] = Bucket; in RehashTable() 235 NewHashArray[FullHash & (NewSize-1)] = FullHash; in RehashTable() 244 NewBucket = (NewBucket + ProbeSize++) & (NewSize-1); in RehashTable() [all …]
|
D | IntervalMap.cpp | 120 const unsigned *CurSize, unsigned NewSize[], in distribute() argument 133 Sum += NewSize[n] = PerNode + (n < Extra); in distribute() 135 PosPair = IdxPair(n, Position - (Sum - NewSize[n])); in distribute() 142 assert(NewSize[PosPair.first] && "Too few elements to need Grow"); in distribute() 143 --NewSize[PosPair.first]; in distribute() 149 assert(NewSize[n] <= Capacity && "Overallocated node"); in distribute() 150 Sum += NewSize[n]; in distribute()
|
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()
|
/third_party/json/test/thirdparty/Fuzzer/ |
D | FuzzerMutate.cpp | 86 size_t NewSize = EF->LLVMFuzzerCustomCrossOver( in Mutate_CustomCrossOver() local 88 if (!NewSize) in Mutate_CustomCrossOver() 90 assert(NewSize <= MaxSize && "CustomCrossOver returned overisized unit"); in Mutate_CustomCrossOver() 91 memcpy(Data, U.data(), NewSize); in Mutate_CustomCrossOver() 92 return NewSize; in Mutate_CustomCrossOver() 409 size_t NewSize = 0; in Mutate_CrossOver() local 412 NewSize = CrossOver(Data, Size, O.data(), O.size(), U.data(), U.size()); in Mutate_CrossOver() 415 NewSize = InsertPartOf(O.data(), O.size(), U.data(), U.size(), MaxSize); in Mutate_CrossOver() 416 if (NewSize) in Mutate_CrossOver() 420 NewSize = CopyPartOf(O.data(), O.size(), U.data(), U.size()); in Mutate_CrossOver() [all …]
|
D | FuzzerLoop.cpp | 626 size_t NewSize = Tmp.size(); in FindExtraUnits() local 627 assert(NewSize <= OldSize); in FindExtraUnits() 630 if (NewSize + 5 >= OldSize) in FindExtraUnits() 632 OldSize = NewSize; in FindExtraUnits() 721 size_t NewSize = 0; in MutateAndTestOne() local 722 NewSize = MD.Mutate(CurrentUnitData, Size, MaxMutationLen); in MutateAndTestOne() 723 assert(NewSize > 0 && "Mutator returned empty unit"); in MutateAndTestOne() 724 assert(NewSize <= MaxMutationLen && "Mutator return overisized unit"); in MutateAndTestOne() 725 Size = NewSize; in MutateAndTestOne() 775 size_t NewSize = MD.Mutate(CurrentUnitData, U.size(), MaxMutationLen); in MinimizeCrashLoop() local [all …]
|
D | FuzzerCorpus.h | 128 bool AddFeature(size_t Idx, uint32_t NewSize, bool Shrink) { in AddFeature() argument 129 assert(NewSize); in AddFeature() 132 if (OldSize == 0 || (Shrink && OldSize > NewSize)) { in AddFeature() 142 Printf("ADD FEATURE %zd sz %d\n", Idx, NewSize); in AddFeature() 144 InputSizesPerFeature[Idx] = NewSize; in AddFeature()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | IndexedMap.h | 68 unsigned NewSize = toIndex_(n) + 1; in grow() local 69 if (NewSize > storage_.size()) in grow() 70 resize(NewSize); in grow()
|
D | IntervalMap.h | 338 unsigned CurSize[], const unsigned NewSize[]) { in adjustSiblingSizes() argument 341 if (CurSize[n] == NewSize[n]) in adjustSiblingSizes() 345 NewSize[n] - CurSize[n]); in adjustSiblingSizes() 349 if (CurSize[n] >= NewSize[n]) in adjustSiblingSizes() 359 if (CurSize[n] == NewSize[n]) in adjustSiblingSizes() 363 CurSize[n] - NewSize[n]); in adjustSiblingSizes() 367 if (CurSize[n] >= NewSize[n]) in adjustSiblingSizes() 374 assert(CurSize[n] == NewSize[n] && "Insufficient element shuffle"); in adjustSiblingSizes() 412 const unsigned *CurSize, unsigned NewSize[], 1900 unsigned NewSize = P.leafSize() - 1; in treeErase() local [all …]
|
D | BitVector.h | 508 unsigned NewSize = Size + 1; in push_back() local 512 if (NewSize > getBitCapacity()) in push_back() 513 resize(NewSize, false); in push_back() 515 Size = NewSize; in push_back() 884 void grow(unsigned NewSize) { in grow() argument 885 size_t NewCapacity = std::max<size_t>(NumBitWords(NewSize), Bits.size() * 2); in grow()
|
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/ |
D | IceAssembler.h | 200 void setSize(intptr_t NewSize) { in setSize() argument 201 assert(NewSize <= size()); in setSize() 202 Cursor = Contents + NewSize; in setSize() 331 void setBufferSize(intptr_t NewSize) { Buffer.setSize(NewSize); } in setBufferSize() argument
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/Native/ |
D | TpiStreamBuilder.cpp | 47 size_t NewSize = TypeRecordBytes + Record.size(); in addTypeRecord() local 49 if (NewSize / EightKB > TypeRecordBytes / EightKB || TypeRecords.empty()) { in addTypeRecord() 55 TypeRecordBytes = NewSize; in addTypeRecord()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | LoopPass.cpp | 229 unsigned NewSize = F.getInstructionCount(); in runOnFunction() local 232 if (NewSize != FunctionSize) { in runOnFunction() 233 int64_t Delta = static_cast<int64_t>(NewSize) - in runOnFunction() 238 FunctionSize = NewSize; in runOnFunction()
|
/third_party/vk-gl-cts/framework/common/ |
D | tcuVector.hpp | 169 template <int NewSize> 170 Vector<T, NewSize> toWidth (void) const; 259 template <int NewSize> 260 inline Vector<T, NewSize> Vector<T, Size>::toWidth (void) const in toWidth() 262 Vector<T, NewSize> res; in toWidth() 264 for (i = 0; i < deMin32(Size, NewSize); i++) in toWidth() 266 for (; i < NewSize; i++) in toWidth()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | AliasSetTracker.h | 77 bool updateSizeAndAAInfo(LocationSize NewSize, const AAMDNodes &NewAAInfo) { in updateSizeAndAAInfo() argument 79 if (NewSize != Size) { in updateSizeAndAAInfo() 81 Size = isSizeSet() ? Size.unionWith(NewSize) : NewSize; in updateSizeAndAAInfo()
|
D | MemoryLocation.h | 254 MemoryLocation getWithNewSize(LocationSize NewSize) const { in getWithNewSize() argument 256 Copy.Size = NewSize; in getWithNewSize()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | OnDiskHashTable.h | 97 void resize(size_t NewSize) { in resize() argument 99 safe_calloc(NewSize, sizeof(Bucket))); in resize() 105 insert(NewBuckets, NewSize, E); in resize() 110 NumBuckets = NewSize; in resize()
|
D | Allocator.h | 356 void setRedZoneSize(size_t NewSize) { in setRedZoneSize() argument 357 RedZoneSize = NewSize; in setRedZoneSize()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | MachineCombiner.cpp | 91 bool doSubstitute(unsigned NewSize, unsigned OldSize, bool OptForSize); 419 bool MachineCombiner::doSubstitute(unsigned NewSize, unsigned OldSize, in doSubstitute() argument 421 if (OptForSize && (NewSize < OldSize)) in doSubstitute()
|
D | InterleavedLoadCombinePass.cpp | 747 unsigned NewSize = DL.getTypeAllocSize(Result.VTy->getElementType()); in computeFromBCI() local 750 if (NewSize * Factor != OldSize) in computeFromBCI() 760 ElementInfo(Old.EI[i / Factor].Ofs + j * NewSize, in computeFromBCI()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 774 uint32_t NewSize = alignTo(CurrentLocalMemUsage, Align); in handleAlloca() local 776 NewSize += AllocSize; in handleAlloca() 778 if (NewSize > LocalMemLimit) { in handleAlloca() 784 CurrentLocalMemUsage = NewSize; in handleAlloca()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | SeparateConstOffsetFromGEP.cpp | 637 unsigned NewSize = 0; in rebuildWithoutConstOffset() local 640 UserChain[NewSize] = I; in rebuildWithoutConstOffset() 641 NewSize++; in rebuildWithoutConstOffset() 644 UserChain.resize(NewSize); in rebuildWithoutConstOffset()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | BitVector.h | 533 void grow(unsigned NewSize) { in grow() argument 534 Capacity = std::max(NumBitWords(NewSize), Capacity * 2); in grow()
|