Which header for AMD XOP _mm_roti_epi64?

Jeffrey Walton noloader@gmail.com
Tue Jul 2 22:33:00 GMT 2019


On Tue, Jul 2, 2019 at 6:31 PM Segher Boessenkool
<segher@kernel.crashing.org> wrote:
>
> On Tue, Jul 02, 2019 at 05:46:24PM -0400, Jeffrey Walton wrote:
> > We don't use <x86intrin.h> because it is missing on too many systems
> > we support (even those that use GCC).
> >
> > Is there a way to get GCC to provide the functions through a system
> > header as expected?
>
> #include <x86intrin.h>
>
> It *is* a system header.  And it is provided by GCC, and it gives you
> _mm_roti_epi64, provided you have GCC 4.5 or later.
>
> If you don't want to use it, you're on your own.  Good luck.

I believe <x86intrin.h> is a GCC specific header. I believe the
expected header is <amminstrin.h>.

Is there any reason GCC can't just follow conventions and stop making
the shit up as they go?

Jeff



More information about the Gcc-help mailing list