Re: Which header for AMD XOP _mm_roti_epi64?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 02, 2019 at 06:32:52PM -0400, Jeffrey Walton wrote:
> On Tue, Jul 2, 2019 at 6:31 PM Segher Boessenkool
> <segher@xxxxxxxxxxxxxxxxxxx> 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>.

Ten years ago this was added to GCC, by AMD people, with the same header
arrangement as we have now.  Clang uses the same, fwiw.


Segher



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux