Home
last modified time | relevance | path

Searched refs:MaxSize (Results 1 – 25 of 53) sorted by relevance

123

/third_party/json/tests/thirdparty/Fuzzer/
DFuzzerMutate.cpp72 size_t MaxSize) { in Mutate_Custom() argument
73 return EF->LLVMFuzzerCustomMutator(Data, Size, MaxSize, Rand.Rand()); in Mutate_Custom()
77 size_t MaxSize) { in Mutate_CustomCrossOver() argument
84 MutateInPlaceHere.resize(MaxSize); in Mutate_CustomCrossOver()
90 assert(NewSize <= MaxSize && "CustomCrossOver returned overisized unit"); in Mutate_CustomCrossOver()
96 size_t MaxSize) { in Mutate_ShuffleBytes() argument
97 if (Size > MaxSize) return 0; in Mutate_ShuffleBytes()
109 size_t MaxSize) { in Mutate_EraseBytes() argument
122 size_t MaxSize) { in Mutate_InsertByte() argument
123 if (Size >= MaxSize) return 0; in Mutate_InsertByte()
[all …]
DFuzzerMutate.h32 size_t Mutate_Custom(uint8_t *Data, size_t Size, size_t MaxSize);
34 size_t Mutate_CustomCrossOver(uint8_t *Data, size_t Size, size_t MaxSize);
36 size_t Mutate_ShuffleBytes(uint8_t *Data, size_t Size, size_t MaxSize);
38 size_t Mutate_EraseBytes(uint8_t *Data, size_t Size, size_t MaxSize);
40 size_t Mutate_InsertByte(uint8_t *Data, size_t Size, size_t MaxSize);
42 size_t Mutate_InsertRepeatedBytes(uint8_t *Data, size_t Size, size_t MaxSize);
44 size_t Mutate_ChangeByte(uint8_t *Data, size_t Size, size_t MaxSize);
46 size_t Mutate_ChangeBit(uint8_t *Data, size_t Size, size_t MaxSize);
48 size_t Mutate_CopyPart(uint8_t *Data, size_t Size, size_t MaxSize);
52 size_t MaxSize);
[all …]
DFuzzerIO.cpp33 Unit FileToVector(const std::string &Path, size_t MaxSize, bool ExitOnError) { in FileToVector() argument
42 if (MaxSize) in FileToVector()
43 FileLen = std::min(FileLen, MaxSize); in FileToVector()
70 long *Epoch, size_t MaxSize, bool ExitOnError) { in ReadDirToVectorOfUnits() argument
81 auto S = FileToVector(X, MaxSize, ExitOnError); in ReadDirToVectorOfUnits()
DFuzzerInterface.h45 size_t LLVMFuzzerCustomMutator(uint8_t *Data, size_t Size, size_t MaxSize,
61 size_t LLVMFuzzerMutate(uint8_t *Data, size_t Size, size_t MaxSize);
DFuzzerIO.h21 Unit FileToVector(const std::string &Path, size_t MaxSize = 0,
31 long *Epoch, size_t MaxSize, bool ExitOnError);
DFuzzerLoop.cpp429 void Fuzzer::RereadOutputCorpus(size_t MaxSize) { in RereadOutputCorpus() argument
433 &EpochOfLastReadOfOutputCorpus, MaxSize, in RereadOutputCorpus()
439 if (U.size() > MaxSize) in RereadOutputCorpus()
440 U.resize(MaxSize); in RereadOutputCorpus()
788 size_t LLVMFuzzerMutate(uint8_t *Data, size_t Size, size_t MaxSize) { in LLVMFuzzerMutate() argument
790 return fuzzer::F->GetMD().DefaultMutate(Data, Size, MaxSize); in LLVMFuzzerMutate()
DFuzzerExtFunctions.def20 (uint8_t * Data, size_t Size, size_t MaxSize, unsigned int Seed),
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceThreading.h58 BoundedProducerConsumerQueue(bool Sequential, size_t MaxSize = MaxStaticSize)
59 : MaxSize(std::min(MaxSize, MaxStaticSize)), Sequential(Sequential) {} in MaxSize() function
65 Shrunk.wait(L, [this] { return size() < MaxSize || Sequential; }); in blockingPush()
128 const size_t MaxSize; variable
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/FuzzMutate/
DIRMutator.h42 virtual uint64_t getWeight(size_t CurrentSize, size_t MaxSize,
70 void mutateModule(Module &M, int Seed, size_t CurSize, size_t MaxSize);
85 uint64_t getWeight(size_t CurrentSize, size_t MaxSize, in getWeight() argument
97 uint64_t getWeight(size_t CurrentSize, size_t MaxSize,
DFuzzerCLI.h68 size_t writeModule(const Module &M, uint8_t *Dest, size_t MaxSize);
/third_party/mesa3d/src/egl/main/
Deglarray.c46 new_size = array->MaxSize; in _eglGrowArray()
58 array->MaxSize = new_size; in _eglGrowArray()
75 array->MaxSize = (init_size > 0) ? init_size : 1; in _eglCreateArray()
108 if (array->Size >= array->MaxSize && !_eglGrowArray(array)) in _eglAppendArray()
Deglarray.h44 EGLint MaxSize; member
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/FuzzMutate/
DIRMutator.cpp55 size_t MaxSize) { in mutateModule() argument
64 Strategy->getWeight(CurSize, MaxSize, RS.totalWeight())); in mutateModule()
139 uint64_t InstDeleterIRStrategy::getWeight(size_t CurrentSize, size_t MaxSize, in getWeight() argument
142 if (CurrentSize > MaxSize - 200) in getWeight()
146 int Line = (-2 * CurrentWeight) * (MaxSize - CurrentSize + 1000); in getWeight()
DFuzzerCLI.cpp189 size_t llvm::writeModule(const Module &M, uint8_t *Dest, size_t MaxSize) { in writeModule() argument
195 if (Buf.size() > MaxSize) in writeModule()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARC/
DARCBranchFinalize.cpp148 unsigned MaxSize = 0; in runOnMachineFunction() local
161 MaxSize += Size; in runOnMachineFunction()
172 isInt<9>(MaxSize) ? replaceWithBRcc(P.first) : replaceWithCmpBcc(P.first); in runOnMachineFunction()
176 << MaxSize << "\n"); in runOnMachineFunction()
/third_party/mesa3d/src/mesa/main/
Dpoints.c42 float size = CLAMP(ctx->Point.Size, ctx->Point.MinSize, ctx->Point.MaxSize); in update_point_size_set()
151 if (ctx->Point.MaxSize == params[0]) in _mesa_PointParameterfv()
154 ctx->Point.MaxSize = params[0]; in _mesa_PointParameterfv()
217 ctx->Point.MaxSize in _mesa_init_point()
/third_party/cups-filters/drv/
Dindexv3.drv65 MaxSize 325mm 10m
88 MaxSize 325mm 10m
101 MaxSize 325mm 10m
122 MaxSize 297mm 10m
140 MaxSize 297mm 10m
Dindexv4.drv88 MaxSize 325mm 10m
115 MaxSize 325mm 10m
126 MaxSize 297mm 10m
147 MaxSize 297mm 10m
/third_party/json/tests/thirdparty/Fuzzer/test/
DCustomMutatorTest.cpp31 size_t MaxSize, unsigned int Seed) { in LLVMFuzzerCustomMutator() argument
37 return LLVMFuzzerMutate(Data, Size, MaxSize); in LLVMFuzzerCustomMutator()
/third_party/skia/third_party/externals/angle2/src/common/
DPackedEnums.h61 template <typename E, size_t MaxSize = EnumSize<E>()>
65 EnumIterator<E> end() const { return {static_cast<E>(MaxSize)}; } in end()
70 template <typename E, typename T, size_t MaxSize = EnumSize<E>()>
74 using Storage = std::array<T, MaxSize>;
114 void swap(PackedEnumMap<E, T, MaxSize> &a) noexcept { mPrivateData.swap(a.mPrivateData); } in swap()
161 const PackedEnumMap<E, SubT, MaxSize> &rhs)
163 for (E e : AllEnums<E, MaxSize>())
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/TableGen/
DSetTheory.cpp163 unsigned MaxSize = 0; in apply() local
166 MaxSize = std::max(MaxSize, unsigned(Args[i].size())); in apply()
169 for (unsigned n = 0; n != MaxSize; ++n) in apply()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonStoreWidening.cpp105 InstrGroup &OG, unsigned &TotalSize, unsigned MaxSize);
307 unsigned MaxSize) { in selectStores() argument
325 if (SizeAccum >= MaxSize) in selectStores()
361 if (SizeAccum + S2Size > std::min(MaxSize, Alignment)) in selectStores()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUSubtarget.cpp434 unsigned MaxSize = getFlatWorkGroupSizes(*Kernel).second; in makeLIDRangeMetadata() local
470 MinSize = MaxSize = mdconst::extract<ConstantInt>( in makeLIDRangeMetadata()
476 if (!MaxSize) in makeLIDRangeMetadata()
484 ++MaxSize; in makeLIDRangeMetadata()
488 APInt(32, MaxSize)); in makeLIDRangeMetadata()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/AsmPrinter/
DDwarfExpression.cpp100 unsigned MachineReg, unsigned MaxSize) { in addMachineReg() argument
159 if (Offset < MaxSize && CurSubReg.test(Coverage)) { in addMachineReg()
165 {Reg, std::min<unsigned>(Size, MaxSize - Offset), "sub-register"}); in addMachineReg()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopUnswitch.cpp138 unsigned MaxSize; member in __anon86432cb90111::LUAnalysisCache
141 LUAnalysisCache() : MaxSize(Threshold) {} in LUAnalysisCache()
304 Props.CanBeUnswitchedCount = MaxSize / (Props.SizeEstimation); in countLoop()
306 MaxSize -= Props.SizeEstimation * Props.CanBeUnswitchedCount; in countLoop()
329 MaxSize += (Props.CanBeUnswitchedCount + Props.WasUnswitchedCount) * in forgetLoop()

123