Tue Nov 13 23:18:55 EST 2012

Does GCC inline function pointers?

With __attribute__((always_inline)) it's possible to keep modularity
without loosing flat code.  However, that's not the full story as this
does not abstract over iteration structures (loops with holes).

Does GCC inline function pointers?
Apparently it does[1].

Let's try this.
Indeed, it does, see inline_function_pointer.c
It even vectorizes the addition.

[1] http://stackoverflow.com/questions/5097917/can-gcc-inline-an-indirect-function-call-through-a-constant-array-of-function-po