Home
last modified time | relevance | path

Searched refs:MaxLen (Results 1 – 25 of 55) sorted by relevance

123

/external/llvm-project/llvm/tools/llvm-pdbutil/
DFormatUtil.cpp21 std::string llvm::pdb::truncateStringBack(StringRef S, uint32_t MaxLen) { in truncateStringBack() argument
22 if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3) in truncateStringBack()
25 assert(MaxLen >= 3); in truncateStringBack()
26 uint32_t FinalLen = std::min<size_t>(S.size(), MaxLen - 3); in truncateStringBack()
31 std::string llvm::pdb::truncateStringMiddle(StringRef S, uint32_t MaxLen) { in truncateStringMiddle() argument
32 if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3) in truncateStringMiddle()
35 assert(MaxLen >= 3); in truncateStringMiddle()
36 uint32_t FinalLen = std::min<size_t>(S.size(), MaxLen - 3); in truncateStringMiddle()
42 std::string llvm::pdb::truncateStringFront(StringRef S, uint32_t MaxLen) { in truncateStringFront() argument
43 if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3) in truncateStringFront()
[all …]
DFormatUtil.h25 std::string truncateStringBack(StringRef S, uint32_t MaxLen);
26 std::string truncateStringMiddle(StringRef S, uint32_t MaxLen);
27 std::string truncateStringFront(StringRef S, uint32_t MaxLen);
29 uint32_t MaxLen);
31 uint32_t MaxLen);
/external/llvm/lib/Fuzzer/
DFuzzerLoop.cpp159 if (CurrentUnitData || Options.MaxLen == 0) return; in LazyAllocateCurrentUnitData()
160 CurrentUnitData = new uint8_t[Options.MaxLen]; in LazyAllocateCurrentUnitData()
309 void Fuzzer::SetMaxLen(size_t MaxLen) { in SetMaxLen() argument
310 assert(Options.MaxLen == 0); // Can only reset MaxLen from 0 to non-0. in SetMaxLen()
311 assert(MaxLen); in SetMaxLen()
312 Options.MaxLen = MaxLen; in SetMaxLen()
313 Printf("INFO: -max_len is not provided, using %zd\n", Options.MaxLen); in SetMaxLen()
584 assert(Options.MaxLen > 0); in Merge()
586 ReadDirToVectorOfUnits(Corpora[0].c_str(), &Initial, nullptr, Options.MaxLen); in Merge()
588 ReadDirToVectorOfUnits(C.c_str(), &Extra, nullptr, Options.MaxLen); in Merge()
[all …]
DFuzzerDriver.cpp302 Options.MaxLen = Flags.max_len; in FuzzerDriver()
390 if (Options.MaxLen == 0) in FuzzerDriver()
396 size_t TemporaryMaxLen = Options.MaxLen ? Options.MaxLen : kMaxSaneLen; in FuzzerDriver()
403 if (Options.MaxLen == 0) in FuzzerDriver()
/external/rust/crates/rayon/src/iter/
Dlen.rs146 pub struct MaxLen<I: IndexedParallelIterator> { struct
151 impl<I> MaxLen<I> impl
157 MaxLen { base, max } in new()
161 impl<I> ParallelIterator for MaxLen<I> implementation
179 impl<I> IndexedParallelIterator for MaxLen<I> implementation
/external/llvm-project/llvm/lib/Target/NVPTX/MCTargetDesc/
DNVPTXTargetStreamer.cpp113 const unsigned MaxLen = 40; in emitRawBytes()
114 unsigned NumChunks = 1 + ((NumElements - 1) / MaxLen); in emitRawBytes()
122 for (auto It = std::next(Data.bytes_begin(), I * MaxLen), in emitRawBytes()
125 : std::next(Data.bytes_begin(), (I + 1) * MaxLen); in emitRawBytes()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/MCTargetDesc/
DNVPTXTargetStreamer.cpp113 const unsigned MaxLen = 40; in emitRawBytes()
114 unsigned NumChunks = 1 + ((NumElements - 1) / MaxLen); in emitRawBytes()
122 for (auto It = std::next(Data.bytes_begin(), I * MaxLen), in emitRawBytes()
125 : std::next(Data.bytes_begin(), (I + 1) * MaxLen); in emitRawBytes()
/external/lzma/CPP/7zip/UI/Console/
DPercentPrinter.h47 unsigned MaxLen; variable
53 MaxLen(80 - 1) in _tickStep()
DPercentPrinter.cpp140 if (!FileName.IsEmpty() && _s.Len() < MaxLen) in Print()
147 if (_s.Len() + _temp.Len() > MaxLen) in Print()
161 if (_s.Len() + _temp.Len() <= MaxLen) in Print()
DExtractCallbackConsole.h42 void SetWindowWidth(unsigned width) { _percent.MaxLen = width - 1; } in SetWindowWidth()
140 void SetWindowWidth(unsigned width) { _percent.MaxLen = width - 1; } in SetWindowWidth()
/external/llvm/lib/MC/
DSubtargetFeature.cpp87 size_t MaxLen = 0; in getLongestEntryLength() local
89 MaxLen = std::max(MaxLen, std::strlen(I.Key)); in getLongestEntryLength()
90 return MaxLen; in getLongestEntryLength()
/external/scudo/standalone/
Dstring_utils.cpp31 constexpr uptr MaxLen = 30; in appendNumber() local
35 RAW_CHECK(MinNumberLength < MaxLen); in appendNumber()
41 uptr NumBuffer[MaxLen]; in appendNumber()
44 RAW_CHECK_MSG(static_cast<uptr>(Pos) < MaxLen, in appendNumber()
/external/llvm-project/compiler-rt/lib/scudo/standalone/
Dstring_utils.cpp31 constexpr uptr MaxLen = 30; in appendNumber() local
35 RAW_CHECK(MinNumberLength < MaxLen); in appendNumber()
41 uptr NumBuffer[MaxLen]; in appendNumber()
44 RAW_CHECK_MSG(static_cast<uptr>(Pos) < MaxLen, in appendNumber()
/external/llvm-project/clang/lib/Lex/
DHeaderMap.cpp157 unsigned MaxLen = FileBuffer->getBufferSize() - StrTabIdx; in getString() local
158 unsigned Len = strnlen(Data, MaxLen); in getString()
161 if (Len == MaxLen && Data[Len - 1]) in getString()
/external/clang/lib/Lex/
DHeaderMap.cpp157 unsigned MaxLen = FileBuffer->getBufferSize() - StrTabIdx; in getString() local
158 unsigned Len = strnlen(Data, MaxLen); in getString()
161 if (Len == MaxLen && Data[Len - 1]) in getString()
/external/llvm-project/llvm/lib/MC/
DMCSubtargetInfo.cpp89 size_t MaxLen = 0; in getLongestEntryLength() local
91 MaxLen = std::max(MaxLen, std::strlen(I.Key)); in getLongestEntryLength()
92 return MaxLen; in getLongestEntryLength()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DMCSubtargetInfo.cpp89 size_t MaxLen = 0; in getLongestEntryLength() local
91 MaxLen = std::max(MaxLen, std::strlen(I.Key)); in getLongestEntryLength()
92 return MaxLen; in getLongestEntryLength()
/external/lzma/CS/7zip/Common/
DCommandLineParser.cs23 public int MaxLen; field in SevenZip.CommandLineParser.SwitchForm
33 MaxLen = maxLen; in SwitchForm()
155 for (int i = minLen; i < switchForm.MaxLen && pos < len; i++, pos++) in ParseString()
/external/llvm-project/compiler-rt/lib/fuzzer/
DFuzzerDriver.cpp319 int RunOneTest(Fuzzer *F, const char *InputFilePath, size_t MaxLen) { in RunOneTest() argument
321 if (MaxLen && MaxLen < U.size()) in RunOneTest()
322 U.resize(MaxLen); in RunOneTest()
526 F->WriteToOutputCorpus(FileToVector(Path, Options.MaxLen)); in Merge()
677 Options.MaxLen = Flags.max_len; in FuzzerDriver()
856 RunOneTest(F, Path.c_str(), Options.MaxLen); in FuzzerDriver()
877 if (Options.MaxLen == 0) in FuzzerDriver()
885 size_t MaxLen = INT_MAX; // Large max length. in FuzzerDriver() local
890 MaxLen, /*ExitOnError=*/false); in FuzzerDriver()
/external/rust/crates/libfuzzer-sys/libfuzzer/
DFuzzerDriver.cpp319 int RunOneTest(Fuzzer *F, const char *InputFilePath, size_t MaxLen) { in RunOneTest() argument
321 if (MaxLen && MaxLen < U.size()) in RunOneTest()
322 U.resize(MaxLen); in RunOneTest()
526 F->WriteToOutputCorpus(FileToVector(Path, Options.MaxLen)); in Merge()
677 Options.MaxLen = Flags.max_len; in FuzzerDriver()
856 RunOneTest(F, Path.c_str(), Options.MaxLen); in FuzzerDriver()
877 if (Options.MaxLen == 0) in FuzzerDriver()
885 size_t MaxLen = INT_MAX; // Large max length. in FuzzerDriver() local
890 MaxLen, /*ExitOnError=*/false); in FuzzerDriver()
DFuzzerOptions.h19 size_t MaxLen = 0; member
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64PreLegalizerCombiner.cpp72 unsigned MaxLen = EnableOpt ? 0 : 32; in combine() local
74 return (!EnableMinSize) ? Helper.tryCombineMemCpyFamily(MI, MaxLen) in combine()
/external/llvm-project/llvm/lib/Target/AArch64/GISel/
DAArch64PreLegalizerCombiner.cpp112 unsigned MaxLen = EnableOpt ? 0 : 32; in combine() local
114 return !EnableMinSize ? Helper.tryCombineMemCpyFamily(MI, MaxLen) : false; in combine()
/external/llvm-project/llvm/tools/llvm-objdump/
DELFDump.cpp170 size_t MaxLen = 0; in printDynamicSection() local
172 MaxLen = std::max(MaxLen, Elf.getDynamicTagAsString(Dyn.d_tag).size()); in printDynamicSection()
173 std::string TagFmt = " %-" + std::to_string(MaxLen) + "s "; in printDynamicSection()
/external/ms-tpm-20-ref/TPMCmd/Simulator/include/prototypes/
DSimulator_fp.h134 int MaxLen

123