Home | History | Annotate | Download | only in MC

Lines Matching refs:Value

60 static bool needsLeadingZero(uint64_t Value)
62 while(Value)
64 uint64_t digit = (Value >> 60) & 0xf;
67 Value <<= 4;
72 format_object1<int64_t> MCInstPrinter::formatDec(const int64_t Value) const {
73 return format("%" PRId64, Value);
76 format_object1<int64_t> MCInstPrinter::formatHex(const int64_t Value) const {
79 if (Value < 0)
80 return format("-0x%" PRIx64, -Value);
82 return format("0x%" PRIx64, Value);
84 if (Value < 0) {
85 if (needsLeadingZero((uint64_t)(-Value)))
86 return format("-0%" PRIx64 "h", -Value);
88 return format("-%" PRIx64 "h", -Value);
90 if (needsLeadingZero((uint64_t)(Value)))
91 return format("0%" PRIx64 "h", Value);
93 return format("%" PRIx64 "h", Value);
99 format_object1<uint64_t> MCInstPrinter::formatHex(const uint64_t Value) const {
102 return format("0x%" PRIx64, Value);
104 if (needsLeadingZero(Value))
105 return format("0%" PRIx64 "h", Value);
107 return format("%" PRIx64 "h", Value);