Does __attribute__((always_inline)) force a function to be inlined by gcc?
__attribute__((always_inline))
Yes.
always_inline Generally, functions are not inlined unless optimization is specified. For functions declared inline, this attribute inlines the function even if no optimization level was specified.
always_inline
Generally, functions are not inlined unless optimization is specified. For functions declared inline, this attribute inlines the function even if no optimization level was specified.
1.4m articles
1.4m replys
5 comments
57.0k users