__attribute__ ifunc examples?

James Cloos cloos@jhcloos.com
Wed Mar 14 14:23:00 GMT 2012


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



More information about the Gcc-help mailing list