bug #1249: enable use of __builtin_prefetch for GCC, clang, and ICC only.

This commit is contained in:
Gael Guennebaud 2016-07-25 15:17:45 +02:00
parent eb7863ebd0
commit ec6ca4eae9

View File

@ -183,7 +183,7 @@ template<typename Scalar, typename Packet> inline void pstoreu(Scalar* to, const
/** \internal tries to do cache prefetching of \a addr */
template<typename Scalar> inline void prefetch(const Scalar* addr)
{
#if !defined(_MSC_VER)
#if (!EIGEN_COMP_MSVC) && (EIGEN_COMP_GNUC || EIGEN_COMP_CLANG || EIGEN_COMP_ICC)
__builtin_prefetch(addr);
#endif
}