Re: [eigen] Fix for ARM __builtin_prefetch fails

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


On Nov 19, 2013, at 00:45 , Christoph Hertzberg <chtz@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:

> Next alternative:
> 
> //This can be put in Core/util/*
> #ifdef __has_builtin
> #  define EIGEN_HAS_BUILTIN(x) __has_builtin

I think you meant

#  define EIGEN_HAS_BUILTIN(x) __has_builtin(x)

right?

> #else
> #  define EIGEN_HAS_BUILTIN(x) 0
> #endif
> 
> 
> // only the first line needs to be changed:
> #if EIGEN_HAS_BUILTIN(__builtin_prefetch) || defined(__GNUC__)
>  #define EIGEN_ARM_PREFETCH(ADDR) __builtin_prefetch(ADDR);
> //...
> 
> 
> Does any compiler except LLVM support __has_builtin?


-- 
Rick



Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/