BTW this is just a special case of ROR.
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Clever. Wonder if the compiler is able to generate a MOVBE for that.
-
Godbolt says no. Many compilers are so bad they generate imul. But the interesting part is not performance but usability in macros that can't expand argument multiple times.
-
Indeed -- useful in those situations where you can't use an inline function or the GCC extension that transforms a parenthesized compound statement into an expression.
End of conversation
New conversation -
-
-
I know, unpopular opinion, but that's one of those macros that - in all of its obviousness - could use a comment. :)
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.