[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] int128_add assumes the result will not exceed 128bits?
From: |
Wizard |
Subject: |
[Qemu-devel] int128_add assumes the result will not exceed 128bits? |
Date: |
Thu, 9 Feb 2012 21:10:14 +0800 |
All, I am reading this code.
static inline Int128 int128_add(Int128 a, Int128 b){ Int128 r = {
a.lo + b.lo, a.hi + b.hi }; r.hi += (r.lo < a.lo) || (r.lo < b.lo);
return r;}
This assumes the result r will not exceed 128 bits?--
Wizard
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] int128_add assumes the result will not exceed 128bits?,
Wizard <=