MCPcopy Create free account
hub / github.com/capstone-engine/capstone / printInt64

Function printInt64

SStream.c:98–114  ·  view source on GitHub ↗

print number

Source from the content-addressed store, hash-verified

96
97// print number
98void printInt64(SStream *O, int64_t val)
99{
100 if (val >= 0) {
101 if (val > HEX_THRESHOLD)
102 SStream_concat(O, "0x%"PRIx64, val);
103 else
104 SStream_concat(O, "%"PRIu64, val);
105 } else {
106 if (val <- HEX_THRESHOLD) {
107 if (val == LONG_MIN)
108 SStream_concat(O, "-0x%"PRIx64, (uint64_t)val);
109 else
110 SStream_concat(O, "-0x%"PRIx64, (uint64_t)-val);
111 } else
112 SStream_concat(O, "-%"PRIu64, -val);
113 }
114}
115
116void printUInt64(SStream *O, uint64_t val)
117{

Callers 14

printMemReferenceFunction · 0.85
printMatrixIndexFunction · 0.85
printOperandFunction · 0.85
printUnsignedImmFunction · 0.85
printAddressFunction · 0.85
_printOperandFunction · 0.85
printU1ImmOperandFunction · 0.85
printU2ImmOperandFunction · 0.85
printU3ImmOperandFunction · 0.85
printU4ImmOperandFunction · 0.85
printU12ImmOperandFunction · 0.85
printU48ImmOperandFunction · 0.85

Calls 1

SStream_concatFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…