aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/dynalloc.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-07-29 11:11:23 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-07-29 11:11:23 +0200
commitaec48143701446e22667549e34509875e42513f9 (patch)
treef9f4ff66310c1f48e4fbff85a65e7ba2888699d2 /test/dynalloc.cpp
parentf7d5b9323d357a25c4b8533b1510d391008cb17d (diff)
Many files were missing in previous changeset.
Diffstat (limited to 'test/dynalloc.cpp')
-rw-r--r--test/dynalloc.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/dynalloc.cpp b/test/dynalloc.cpp
index 1190eb9cd..3d895f2e0 100644
--- a/test/dynalloc.cpp
+++ b/test/dynalloc.cpp
@@ -9,8 +9,8 @@
#include "main.h"
-#if EIGEN_ALIGN
-#define ALIGNMENT EIGEN_ALIGN_BYTES
+#if EIGEN_MAX_ALIGN_BYTES>0
+#define ALIGNMENT EIGEN_MAX_ALIGN_BYTES
#else
#define ALIGNMENT 1
#endif
@@ -106,7 +106,7 @@ template<typename T> void check_custom_new_delete()
delete[] t;
}
-#ifdef EIGEN_ALIGN
+#if EIGEN_MAX_ALIGN_BYTES>0
{
T* t = static_cast<T *>((T::operator new)(sizeof(T)));
(T::operator delete)(t, sizeof(T));
@@ -143,7 +143,7 @@ void test_dynalloc()
}
// check static allocation, who knows ?
- #if EIGEN_ALIGN_STATICALLY
+ #if EIGEN_MAX_STATIC_ALIGN_BYTES
{
MyStruct foo0; VERIFY(size_t(foo0.avec.data())%ALIGNMENT==0);
MyClassA fooA; VERIFY(size_t(fooA.avec.data())%ALIGNMENT==0);