Bypass inline asm for non compatible compilers.

This commit is contained in:
Gael Guennebaud
2019-01-23 23:43:13 +01:00
parent e16913a45f
commit c64d5d3827
2 changed files with 4 additions and 1 deletions

View File

@@ -28,11 +28,15 @@
#endif
static void escape(void *p) {
#if EIGEN_COMP_GNUC || EIGEN_COMP_CLANG
asm volatile("" : : "g"(p) : "memory");
#endif
}
static void clobber() {
#if EIGEN_COMP_GNUC || EIGEN_COMP_CLANG
asm volatile("" : : : "memory");
#endif
}
#include <Eigen/Core>