#define BSWAP16(x) ((x)*0x10001>>8&0xffff)
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.
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.