<div dir="ltr">Thank Ulrich!<div><br></div><div>Yes, but when the jump table is active, the platform specific optimization functions could not be inlined.<div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 1, 2017 at 11:27 PM, Ulrich Windl <span dir="ltr"><<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de" target="_blank">Ulrich.Windl@rz.uni-regensburg.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
I'm not deep i the code, but from my experience even older gcc (4.3.4) does function inlining at -O2, and at -O3 it inlines almost any function inside one module. Once I even let it inline across modules (-combine). I'm not talking about explicit inline functions; just about automatic optimization.<br>
So did you check that frequent function calls actually happen? I'm a bit afraid that after all those optimizations suggested the code may be rather hard to understand. I think compilers should do the dirty work (i.e.: optimizing and inlining). Sometimes "static" and "const" attributes help the compiler to optimize...<br>
<br>
Regards,<br>
Ulrich<br></blockquote></div></div></div></div>