Cross-module inlining in gdc

Trass3r un at known.com
Wed Feb 9 12:14:24 PST 2011


> // Assume __v4sf is defined by the compiler
> pragma(set_attribute, _mm_add_ps, always_inline, artificial);
> __v4sf _mm_add_ps (__v4sf __A, __v4sf __B)
> {
>     return __builtin_ia32_addps(__A, __B);
> }

2 notes:
Isn't it pragma(GNU_set_attribute?

And you should be able to do
pragma(GNU_attribute, always_inline, artificial)
__v4sf _mm_add_ps....

as well.


More information about the D.gnu mailing list