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

Function printInt64Bang

SStream.c:71–87  ·  view source on GitHub ↗

print number with prefix #

Source from the content-addressed store, hash-verified

69
70// print number with prefix #
71void printInt64Bang(SStream *O, int64_t val)
72{
73 if (val >= 0) {
74 if (val > HEX_THRESHOLD)
75 SStream_concat(O, "#0x%"PRIx64, val);
76 else
77 SStream_concat(O, "#%"PRIu64, val);
78 } else {
79 if (val <- HEX_THRESHOLD) {
80 if (val == LONG_MIN)
81 SStream_concat(O, "#-0x%"PRIx64, (uint64_t)val);
82 else
83 SStream_concat(O, "#-0x%"PRIx64, (uint64_t)-val);
84 } else
85 SStream_concat(O, "#-%"PRIu64, -val);
86 }
87}
88
89void printUInt64Bang(SStream *O, uint64_t val)
90{

Callers 10

AArch64_printInstFunction · 0.85
printOperandFunction · 0.85
printSImmFunction · 0.85
printLogicalImm64Function · 0.85
printImmScaleFunction · 0.85
printUImm12OffsetFunction · 0.85
printAMIndexedWBFunction · 0.85
printComplexRotationOpFunction · 0.85
printOperandFunction · 0.85
print_zero_extFunction · 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…