mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Bypass inline asm for non compatible compilers.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user