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?
-
-
(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.)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.