mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-08 09:49:03 +08:00
Disable ASM comments on non x86 architecture and do not redfine if EIGEN_ASM_COMMENT is already defined
This commit is contained in:
parent
8cc9b12589
commit
620e4277bc
@ -240,11 +240,13 @@
|
|||||||
// Suppresses 'unused variable' warnings.
|
// Suppresses 'unused variable' warnings.
|
||||||
#define EIGEN_UNUSED_VARIABLE(var) (void)var;
|
#define EIGEN_UNUSED_VARIABLE(var) (void)var;
|
||||||
|
|
||||||
#if !defined(EIGEN_ASM_COMMENT) && (defined __GNUC__)
|
#if !defined(EIGEN_ASM_COMMENT)
|
||||||
|
#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
|
||||||
|
#endif
|
||||||
|
|
||||||
/* EIGEN_ALIGN_TO_BOUNDARY(n) forces data to be n-byte aligned. This is used to satisfy SIMD requirements.
|
/* EIGEN_ALIGN_TO_BOUNDARY(n) forces data to be n-byte aligned. This is used to satisfy SIMD requirements.
|
||||||
* However, we do that EVEN if vectorization (EIGEN_VECTORIZE) is disabled,
|
* However, we do that EVEN if vectorization (EIGEN_VECTORIZE) is disabled,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user