jeudi 21 juillet 2016

Inline functions and calling conventions

Is there a point in specifying calling convention for an inline function? For example, I am writing SIMD math library, where it is recommended to use __vectorcall, but all of my functions are inline. In some articles I have seen people inlining all function and still saying, that you need to compile the library with default __vectorcall convention (or actually putting this attribute).
I can see the difference in assembly, when function is not inline. But what is the point to specify calling convention for inline function since it is not really a function call? Isn't it better to specify __vectorcall only for not inline function?

Aucun commentaire:

Enregistrer un commentaire