![]() |
|
#4
|
||||
|
||||
|
Using modern compiler optimizations it suggests that doing something like this:
Code:
int32_t val1 = 1234;
int32_t val2 = -val1;
Code:
mov [ebp+var_4], 4D2h mov eax, [ebp+var_4] neg eax mov [ebp+var_4], eax Code:
int32_t val1 = 1234; val1 *= -1; |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hex-Rays and negative structure offsets | jonwil | General Discussion | 3 | 02-20-2019 10:37 |