MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / sign_extend

Function sign_extend

arch/powerpc/util.cpp:88–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88uint64_t sign_extend(size_t addressSize_local, uint64_t target, int signBit)
89{
90 if ((target >> signBit) & 1)
91 {
92 target = target | (~((1 << signBit) - 1));
93 }
94
95 if (addressSize_local == 4)
96 {
97 target = target & 0xffffffff;
98 }
99 return target;
100}
101

Callers 2

GetInstructionInfoMethod · 0.85
LiftBranchesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected