3 ms·
It's not necessary to write macros in C if you want to avoid runtime function calls. Functions can be inlined. There exist keywords to request inlining, and mos
by scott_s 11y ago
It's not necessary to write macros in C if you want to avoid runtime function calls. Functions can be inlined. There exist keywords to request inlining, and most compilers have extensions to force it. But in practice, optimizers will inline small functions like this if they have access to the definition.