How to divide a 32-bit number by 10, on a 64-bit processor:
d = (i * 0xCCCCCCCDLLU)>>35;
#Programming
-
-
Integers aren't allowed padding bits or trap representations in C99 or C11.
-
This statement is false. Perhaps you're thinking of the [u]intN_t types?
-
Oops! Upon reading §6.2.6.2, I see that the restriction I was thinking of only applies to unsigned char. Sorry!
End of conversation
New conversation -
-
-
Thinking about it, you're spot on there.
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.