"\0\1\2\4\7\3\6\5"[(0x17*base)>>5&7]
-
-
Replying to @volatile_void
@spun_off interesting. avoids a multiply and uses a shift for the ispow2(base) case. micro-optimisation. last else works for all bases
1 reply 0 retweets 0 likes -
Replying to @corkmork
@mjcmeta @spun_off I was more interested in avoiding the divs (overflow check) in the else case. Not fun to div reading 64-bit hex.
1 reply 0 retweets 2 likes
@mjcmeta @spun_off Avoiding mul was just an extra microopt that came for free with avoiding div.
6:54 AM - 18 Mar 2016
0 replies
0 retweets
0 likes
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.