#define D(c) x = (x & ((1<<c)-1)) + (x >> c);
unsigned mod5(unsigned x) {D(16) D(8) D(4) D(4) D(4) x = (x&3)-(x>>2); return (x>3) * 5 + x;}
-
-
Replying to @RichFelker
@RichFelker@ch3root Hardware implementation (much lower latency, lower die area), CPU/MCU archs without a widening MUL instruction.1 reply 0 retweets 0 likes -
Replying to @solardiz1 reply 0 retweets 0 likes
-
Replying to @RichFelker
@RichFelker@ch3root Of course, we don't mean this for actual use in C on today's typical CPU archs. We merely express it in C.1 reply 0 retweets 0 likes -
Replying to @RichFelker
@RichFelker@solardiz Yeah, I don't like it too. But it saves some chars in a tweet. Perhaps it's better to leave some spaces out instead.1 reply 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.