Which header for AMD XOP _mm_roti_epi64?

Segher Boessenkool segher@kernel.crashing.org
Tue Jul 2 22:31:00 GMT 2019


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.


Segher



More information about the Gcc-help mailing list