Re:How to properly use macros in C
by loup-vaillant on Monday December 11, 2017 @03:24AM
(#15895799)
> I wouldn't have expected macros to be slower in any case, however.
Neither did I to be honest. I was searching for low hanging fruits, and forcing inlining with macros looked made some kind of sense. I expected the compiler to generate the same code, yet somehow it didn't.
Neither did I to be honest. I was searching for low hanging fruits, and forcing inlining with macros looked made some kind of sense. I expected the compiler to generate the same code, yet somehow it didn't.