lazyweb, let's say I have `uintmax_t a, b;`. I need to figure out if `a + b` has carry-out. by definition I can't put the result in a wider integer type; what's a good portable way to do this anyway?
-
-
And here ist adding three values (a0, a1, and a2) with sum output in a0 and carry-out in a1.pic.twitter.com/CCWquRDDag
-
(looking at this again I think the "or" at the end should be an "add" so that it works for any input values, producing a two-bit carry-out when needed.)
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.