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?
-
-
Signed version isn't valid C. Unsigned one is okay though.
-
Oh, yeah, good catch. Didn't care about that in the BitManip work because there it's written in RISC-V asm. :)pic.twitter.com/2dQT78AYCP
- Show replies
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.