diff options
Diffstat (limited to 'results/scraper/box64/67')
| -rw-r--r-- | results/scraper/box64/67 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/results/scraper/box64/67 b/results/scraper/box64/67 new file mode 100644 index 000000000..fadfb06b8 --- /dev/null +++ b/results/scraper/box64/67 @@ -0,0 +1,16 @@ +add64 overflow calculation whether mistake? +```C +static inline uint64_t add64(x64emu_t *emu, uint64_t d, uint64_t s) +{ + emu->res.u64 = d + s; + emu->op1.u64 = d; + emu->op2.u64 = s; + emu->df = d_add64; + return emu->res.u64; +} +``` +(x64primop.h) + +Here, the result of adding two 64 bits is stored in type of Uint64_t, The most significant overflow result is lost in this Uint64_t type. + +Is that right? \ No newline at end of file |