Lines Matching defs:Value
56 static bool needsLeadingZero(uint64_t Value)
58 while(Value)
60 uint64_t digit = (Value >> 60) & 0xf;
63 Value <<= 4;
68 format_object1<int64_t> MCInstPrinter::formatDec(const int64_t Value) const {
69 return format("%" PRId64, Value);
72 format_object1<int64_t> MCInstPrinter::formatHex(const int64_t Value) const {
75 if (Value < 0)
76 return format("-0x%" PRIx64, -Value);
78 return format("0x%" PRIx64, Value);
80 if (Value < 0) {
81 if (needsLeadingZero((uint64_t)(-Value)))
82 return format("-0%" PRIx64 "h", -Value);
84 return format("-%" PRIx64 "h", -Value);
86 if (needsLeadingZero((uint64_t)(Value)))
87 return format("0%" PRIx64 "h", Value);
89 return format("%" PRIx64 "h", Value);
95 format_object1<uint64_t> MCInstPrinter::formatHex(const uint64_t Value) const {
98 return format("0x%" PRIx64, Value);
100 if (needsLeadingZero(Value))
101 return format("0%" PRIx64 "h", Value);
103 return format("%" PRIx64 "h", Value);