mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
bug #1249: enable use of __builtin_prefetch for GCC, clang, and ICC only.
This commit is contained in:
parent
6d5daf32f5
commit
34b483e25d
@ -306,7 +306,7 @@ template<typename Scalar> EIGEN_DEVICE_FUNC inline void prefetch(const Scalar* a
|
|||||||
// 32-bit pointer operand constraint for inlined asm
|
// 32-bit pointer operand constraint for inlined asm
|
||||||
asm(" prefetch.L1 [ %1 ];" : "=r"(addr) : "r"(addr));
|
asm(" prefetch.L1 [ %1 ];" : "=r"(addr) : "r"(addr));
|
||||||
#endif
|
#endif
|
||||||
#elif !EIGEN_COMP_MSVC
|
#elif (!EIGEN_COMP_MSVC) && (EIGEN_COMP_GNUC || EIGEN_COMP_CLANG || EIGEN_COMP_ICC)
|
||||||
__builtin_prefetch(addr);
|
__builtin_prefetch(addr);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user