Home
last modified time | relevance | path

Searched refs:format_hex (Results 1 – 15 of 15) sorted by relevance

/external/llvm/unittests/Support/
Draw_ostream_test.cpp156 EXPECT_EQ("0x1234", printToString(format_hex(0x1234, 6), 6)); in TEST()
157 EXPECT_EQ("0x001234", printToString(format_hex(0x1234, 8), 8)); in TEST()
158 EXPECT_EQ("0x00001234", printToString(format_hex(0x1234, 10), 10)); in TEST()
159 EXPECT_EQ("0x1234", printToString(format_hex(0x1234, 4), 6)); in TEST()
160 EXPECT_EQ("0xff", printToString(format_hex(255, 4), 4)); in TEST()
161 EXPECT_EQ("0xFF", printToString(format_hex(255, 4, true), 4)); in TEST()
162 EXPECT_EQ("0x1", printToString(format_hex(1, 3), 3)); in TEST()
163 EXPECT_EQ("0x12", printToString(format_hex(0x12, 3), 4)); in TEST()
164 EXPECT_EQ("0x123", printToString(format_hex(0x123, 3), 5)); in TEST()
168 printToString(format_hex(UINT64_MAX, 18), 18)); in TEST()
[all …]
/external/llvm/tools/llvm-pdbdump/
DCompilandDumper.cpp84 << "[" << format_hex(AddrStart, 10) << " - " in start()
85 << format_hex(AddrEnd, 10) << "]"; in start()
90 << "[" << format_hex(AddrStart, 10) << "] "; in start()
118 << "[" << format_hex(Symbol.getVirtualAddress(), 10) << "]"; in dump()
151 << "[" << format_hex(Symbol.getVirtualAddress(), 10) << "] "; in dump()
165 WithColor(Printer, PDB_ColorItem::Address).get() << format_hex(VA, 10); in dump()
167 WithColor(Printer, PDB_ColorItem::Address).get() << format_hex(Target, 10); in dump()
170 << "[" << format_hex(VA, 10) << " - " in dump()
171 << format_hex(VA + Symbol.getLength(), 10) << "]"; in dump()
DVariableDumper.cpp48 << format_hex(Var.getVirtualAddress(), 10); in start()
67 << "+" << format_hex(Var.getOffset(), 4) << " "; in start()
74 << "+" << format_hex(Var.getOffset(), 4) << " "; in start()
DExternalSymbolDumper.cpp38 WithColor(Printer, PDB_ColorItem::Address).get() << format_hex(Addr, 10); in dump()
DFunctionDumper.cpp119 WithColor(Printer, PDB_ColorItem::Address).get() << format_hex(FuncStart, 10); in start()
125 WithColor(Printer, PDB_ColorItem::Address).get() << format_hex(FuncEnd, 10); in start()
/external/syslinux/gpxe/src/core/
Dvsprintf.c79 static char * format_hex ( char *end, unsigned long long num, int width, in format_hex() function
231 ptr = format_hex ( ptr, ptrval, width, in vcprintf()
244 ptr = format_hex ( ptr, hex, width, flags ); in vcprintf()
/external/llvm/lib/Support/
DSignals.cpp62 return format_hex((uint64_t)PC, PtrWidth); in format_ptr()
171 OS << "(" << Modules[i] << '+' << format_hex(Offsets[i], 0) << ")"; in printSymbolizedStackTrace()
/external/llvm/lib/CodeGen/
DFaultMaps.cpp128 OS << "FunctionAddress: " << format_hex(FI.getFunctionAddr(), 8) in operator <<()
136 OS << "Version: " << format_hex(FMP.getFaultMapVersion(), 2) << "\n"; in operator <<()
/external/llvm/tools/llvm-objdump/
DCOFFDump.cpp260 << format_hex(TLSDir->StartAddressOfRawData, FormatWidth) in printTLSDirectoryT()
262 << format_hex(TLSDir->EndAddressOfRawData, FormatWidth) in printTLSDirectoryT()
264 << format_hex(TLSDir->AddressOfIndex, FormatWidth) in printTLSDirectoryT()
266 << format_hex(TLSDir->AddressOfCallBacks, FormatWidth) in printTLSDirectoryT()
DMachODump.cpp5881 << format_hex(XarHeader.magic, 10, true) in DumpBitcodeSection()
9273 << format_hex(Address, 10, true) << " " in printMachOBindTable()
9302 << format_hex(Address, 10, true) << " " in printMachOLazyBindTable()
9335 << format_hex(Address, 10, true) << " " in printMachOWeakBindTable()
/external/llvm/tools/llvm-bcanalyzer/
Dllvm-bcanalyzer.cpp727 << " Magic=" << format_hex(Magic, 10) in openBitcodeFile()
728 << " Version=" << format_hex(Version, 10) in openBitcodeFile()
729 << " Offset=" << format_hex(Offset, 10) in openBitcodeFile()
730 << " Size=" << format_hex(Size, 10) in openBitcodeFile()
731 << " CPUType=" << format_hex(CPUType, 10) << "/>\n"; in openBitcodeFile()
/external/llvm/include/llvm/Support/
DFormat.h164 inline FormattedNumber format_hex(uint64_t N, unsigned Width,
/external/llvm/tools/llvm-readobj/
DELFDumper.cpp1213 return std::string("<unknown>: ") + to_string(format_hex(Type, 1)); in getElfPtType()
1780 W.startLine() << " " << format_hex(Tag, Is64 ? 18 : 10, opts::Output != opts::GNU) << " " in printDynamicTable()
2904 << "Entry point " << format_hex(Header->e_entry, 3) << "\n" in printProgramHeaders()
2916 Offset = to_string(format_hex(Phdr.p_offset, 8)); in printProgramHeaders()
2917 VMA = to_string(format_hex(Phdr.p_vaddr, Width)); in printProgramHeaders()
2918 LMA = to_string(format_hex(Phdr.p_paddr, Width)); in printProgramHeaders()
2919 FileSz = to_string(format_hex(Phdr.p_filesz, SizeWidth)); in printProgramHeaders()
2920 MemSz = to_string(format_hex(Phdr.p_memsz, SizeWidth)); in printProgramHeaders()
2922 Align = to_string(format_hex(Phdr.p_align, 1)); in printProgramHeaders()
3015 << format_hex(reinterpret_cast<const uint8_t *>(DynRelaRegion.Addr) - in printDynamicRelocations()
[all …]
/external/llvm/lib/Target/Hexagon/AsmParser/
DHexagonAsmParser.cpp1516 ES << "value " << Val << "(" << format_hex(Val, 0) << ") out of range: "; in OutOfRange()
/external/llvm/lib/IR/
DAsmWriter.cpp1184 Out << format_hex(apf.bitcastToAPInt().getZExtValue(), 0, /*Upper=*/true); in WriteConstantInternal()