/external/llvm-project/llvm/tools/llvm-pdbutil/ |
D | FormatUtil.cpp | 21 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 …]
|
D | FormatUtil.h | 25 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/ |
D | FuzzerLoop.cpp | 159 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 …]
|
D | FuzzerDriver.cpp | 302 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/ |
D | len.rs | 146 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/ |
D | NVPTXTargetStreamer.cpp | 113 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/ |
D | NVPTXTargetStreamer.cpp | 113 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/ |
D | PercentPrinter.h | 47 unsigned MaxLen; variable 53 MaxLen(80 - 1) in _tickStep()
|
D | PercentPrinter.cpp | 140 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()
|
D | ExtractCallbackConsole.h | 42 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/ |
D | SubtargetFeature.cpp | 87 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/ |
D | string_utils.cpp | 31 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/ |
D | string_utils.cpp | 31 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/ |
D | HeaderMap.cpp | 157 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/ |
D | HeaderMap.cpp | 157 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/ |
D | MCSubtargetInfo.cpp | 89 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/ |
D | MCSubtargetInfo.cpp | 89 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/ |
D | CommandLineParser.cs | 23 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/ |
D | FuzzerDriver.cpp | 319 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/ |
D | FuzzerDriver.cpp | 319 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()
|
D | FuzzerOptions.h | 19 size_t MaxLen = 0; member
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64PreLegalizerCombiner.cpp | 72 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/ |
D | AArch64PreLegalizerCombiner.cpp | 112 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/ |
D | ELFDump.cpp | 170 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/ |
D | Simulator_fp.h | 134 int MaxLen
|