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

Function SignExtend

arch/arm64/disassembler/pcode.c:809–824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

807}
808
809uint64_t SignExtend(uint64_t x, int width)
810{
811 uint64_t result = -1;
812
813 if (x & ((uint64_t)1 << (width - 1)))
814 {
815 result ^= (((uint64_t)1 << width) - 1);
816 result |= x;
817 }
818 else
819 {
820 result = x;
821 }
822
823 return result;
824}
825
826enum Constraint ConstrainUnpredictable(enum Unpredictable u)
827{

Callers 15

ADRFunction · 0.85
ADRPFunction · 0.85
BLFunction · 0.85
B_condFunction · 0.85
B_uncondFunction · 0.85
CBNZFunction · 0.85
CBZFunction · 0.85
LDAPURBFunction · 0.85
LDAPURHFunction · 0.85
LDAPURSBFunction · 0.85
LDAPURSHFunction · 0.85
LDAPURSWFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected