How to divide a 32-bit number by 10, on a 64-bit processor:
d = (i * 0xCCCCCCCDLLU)>>35;
#Programming
-
-
It generates different code (at least for my GCC) - the generated code trashes EDX, leaving one less register for optimization, if inlinedpic.twitter.com/pNUsFEetIX
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I don't have links handy but there are detailed docs on generating the right constants for arbitrary denominator.
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.