This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

__attribute__ ifunc examples?


Does anyone have a worked example in C of using attribute ifunc to
dispatch over the various x86 SSE/AVX flags, as well as arm neon?

Must one call cpuid manually, or are flags already available to check?

I haven't found any via goog (and the C++ example I found was
incompatible with the gcc-4.6 syntax for ifunc), and glibc's
support for it is too opaque for grep.

Thanks,

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]