12 #if EIGEN_MAX_ALIGN_BYTES>0 13 #define ALIGNMENT EIGEN_MAX_ALIGN_BYTES 23 for(
int i = 1;
i < 1000;
i++)
28 for(
int j = 0;
j <
i;
j++) p[
j]=0;
40 for(
int j = 0;
j <
i;
j++) p[
j]=0;
49 float *
p = internal::aligned_new<float>(
i);
52 for(
int j = 0;
j <
i;
j++) p[
j]=0;
64 for(
int j = 0;
j <
i;
j++)
p[
j]=0;
91 VERIFY(T::NeedsToAlign==1);
110 #if EIGEN_MAX_ALIGN_BYTES>0 && (!EIGEN_HAS_CXX17_OVERALIGN) 112 T*
t =
static_cast<T *
>((T::operator
new)(
sizeof(
T)));
113 (T::operator
delete)(t,
sizeof(
T));
117 T*
t =
static_cast<T *
>((T::operator
new)(
sizeof(
T)));
118 (T::operator
delete)(t);
140 #if EIGEN_MAX_STATIC_ALIGN_BYTES 141 for (
int i=0;
i<g_repeat*100; ++
i)
158 for (
int i=0;
i<g_repeat*100; ++
i)
168 for (
int i=0;
i<g_repeat*100; ++
i)
Matrix< float, 16, 1 > Vector16f
EIGEN_DEVICE_FUNC void * aligned_malloc(std::size_t size)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar * data() const
EIGEN_DEVICE_FUNC void aligned_delete(T *ptr, std::size_t size)
void check_handmade_aligned_malloc()
#define EIGEN_MAKE_ALIGNED_OPERATOR_NEW
Matrix< float, 8, 1 > Vector8f
EIGEN_DEVICE_FUNC void aligned_free(void *ptr)
EIGEN_DEVICE_FUNC void handmade_aligned_free(void *ptr)
EIGEN_DEVICE_FUNC void * handmade_aligned_malloc(std::size_t size, std::size_t alignment=EIGEN_DEFAULT_ALIGN_BYTES)
Eigen::Triplet< double > T
EIGEN_DECLARE_TEST(dynalloc)
#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 check_aligned_stack_alloc()
EIGEN_MAKE_ALIGNED_OPERATOR_NEW char dummychar
void check_aligned_malloc()