| 86 | } |
| 87 | |
| 88 | uint64_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 |
no outgoing calls
no test coverage detected