mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-09 22:51:51 +08:00
Replace asm by __asm__ (bug #873).
Thanks to Markus Eisenmann for report and initial patch.
This commit is contained in:
parent
5daebe0a27
commit
cad0fa5d77
@ -56,7 +56,7 @@ typedef uint32x4_t Packet4ui;
|
|||||||
#elif defined __pld
|
#elif defined __pld
|
||||||
#define EIGEN_ARM_PREFETCH(ADDR) __pld(ADDR)
|
#define EIGEN_ARM_PREFETCH(ADDR) __pld(ADDR)
|
||||||
#elif !defined(__aarch64__)
|
#elif !defined(__aarch64__)
|
||||||
#define EIGEN_ARM_PREFETCH(ADDR) asm volatile ( " pld [%[addr]]\n" :: [addr] "r" (ADDR) : "cc" );
|
#define EIGEN_ARM_PREFETCH(ADDR) __asm__ __volatile__ ( " pld [%[addr]]\n" :: [addr] "r" (ADDR) : "cc" );
|
||||||
#else
|
#else
|
||||||
// by default no explicit prefetching
|
// by default no explicit prefetching
|
||||||
#define EIGEN_ARM_PREFETCH(ADDR)
|
#define EIGEN_ARM_PREFETCH(ADDR)
|
||||||
|
@ -254,7 +254,7 @@ namespace Eigen {
|
|||||||
|
|
||||||
#if !defined(EIGEN_ASM_COMMENT)
|
#if !defined(EIGEN_ASM_COMMENT)
|
||||||
#if (defined __GNUC__) && ( defined(__i386__) || defined(__x86_64__) )
|
#if (defined __GNUC__) && ( defined(__i386__) || defined(__x86_64__) )
|
||||||
#define EIGEN_ASM_COMMENT(X) asm("#" X)
|
#define EIGEN_ASM_COMMENT(X) __asm__("#" X)
|
||||||
#else
|
#else
|
||||||
#define EIGEN_ASM_COMMENT(X)
|
#define EIGEN_ASM_COMMENT(X)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user