12 #if EIGEN_MAX_ALIGN_BYTES>0 13 #define ALIGNMENT EIGEN_MAX_ALIGN_BYTES 22 for(
int i = 1;
i < 1000;
i++)
27 for(
int j = 0;
j <
i;
j++) p[
j]=0;
39 for(
int j = 0;
j <
i;
j++) p[
j]=0;
48 float *
p = internal::aligned_new<float>(
i);
51 for(
int j = 0;
j <
i;
j++) p[
j]=0;
63 for(
int j = 0;
j <
i;
j++)
p[
j]=0;
90 VERIFY(T::NeedsToAlign==1);
109 #if EIGEN_MAX_ALIGN_BYTES>0 111 T*
t =
static_cast<T *
>((T::operator
new)(
sizeof(
T)));
112 (T::operator
delete)(t,
sizeof(
T));
116 T*
t =
static_cast<T *
>((T::operator
new)(
sizeof(
T)));
117 (T::operator
delete)(t);
139 #if EIGEN_MAX_STATIC_ALIGN_BYTES 140 for (
int i=0;
i<g_repeat*100; ++
i)
156 for (
int i=0;
i<g_repeat*100; ++
i)
166 for (
int i=0;
i<g_repeat*100; ++
i)
EIGEN_DEVICE_FUNC void * aligned_malloc(std::size_t size)
EIGEN_DEVICE_FUNC void aligned_delete(T *ptr, std::size_t size)
void check_handmade_aligned_malloc()
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar * data() const
#define EIGEN_MAKE_ALIGNED_OPERATOR_NEW
Matrix< float, 8, 1 > Vector8f
void * handmade_aligned_malloc(std::size_t size)
EIGEN_DEVICE_FUNC void aligned_free(void *ptr)
Eigen::Triplet< double > T
#define ei_declare_aligned_stack_constructed_variable(TYPE, NAME, SIZE, BUFFER)
void check_custom_new_delete()
#define CALL_SUBTEST(FUNC)
EIGEN_MAKE_ALIGNED_OPERATOR_NEW char dummychar
void handmade_aligned_free(void *ptr)
void check_aligned_stack_alloc()
EIGEN_MAKE_ALIGNED_OPERATOR_NEW char dummychar
void check_aligned_malloc()