5 ms·
There isnt some forcelinline attribute in gcc?
by gruez 9y ago
There isnt some forcelinline attribute in gcc?
- Paul_S 9y agoYeah, #define.
- JoachimSchipper 9y agoYour parent is probably not talking about gcc, or even about C; gcc does indeed have __attribute__((always_inline)).
- CJefferson 9y agoThere is, but in practice just normal inline, or even trusting the compiler to decide what to inline itself, are just fine. The problem comes when you are using other languages (scripting ones like Python come to mind) where inlining is but a dream (ignoring systems like PyPy).