diff options
-rw-r--r-- | Eigen/src/Eigen2Support/Macros.h | 2 | ||||
-rw-r--r-- | Eigen/src/Eigen2Support/Memory.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Eigen/src/Eigen2Support/Macros.h b/Eigen/src/Eigen2Support/Macros.h index be11357a1..77e85a41e 100644 --- a/Eigen/src/Eigen2Support/Macros.h +++ b/Eigen/src/Eigen2Support/Macros.h @@ -30,4 +30,6 @@ #define EIGEN_ALIGN_128 EIGEN_ALIGN16 +#define EIGEN_ARCH_WANTS_ALIGNMENT EIGEN_ALIGN_STATICALLY + #endif // EIGEN2_MACROS_H diff --git a/Eigen/src/Eigen2Support/Memory.h b/Eigen/src/Eigen2Support/Memory.h index aba9a16e7..028347541 100644 --- a/Eigen/src/Eigen2Support/Memory.h +++ b/Eigen/src/Eigen2Support/Memory.h @@ -28,6 +28,8 @@ inline void* ei_aligned_malloc(size_t size) { return internal::aligned_malloc(size); } inline void ei_aligned_free(void *ptr) { internal::aligned_free(ptr); } inline void* ei_aligned_realloc(void *ptr, size_t new_size, size_t old_size) { return internal::aligned_realloc(ptr, new_size, old_size); } +inline void* ei_handmade_aligned_malloc(size_t size) { return internal::handmade_aligned_malloc(size); } +inline void ei_handmade_aligned_free(void *ptr) { internal::handmade_aligned_free(ptr); } template<bool Align> inline void* ei_conditional_aligned_malloc(size_t size) { |