mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
bug #973: update macro-level control of alignement by introducing user-controllable EIGEN_MAX_ALIGN_BYTES and EIGEN_MAX_STATIC_ALIGN_BYTES macros. This changeset also removes EIGEN_ALIGN (replaced by EIGEN_MAX_ALIGN_BYTES>0), EIGEN_ALIGN_STATICALLY (replaced by EIGEN_MAX_STATIC_ALIGN_BYTES>0), EIGEN_USER_ALIGN*, EIGEN_ALIGN_DEFAULT (replaced by EIGEN_ALIGN_MAX).
This commit is contained in:
@@ -167,7 +167,7 @@ class compute_matrix_evaluator_flags
|
||||
(
|
||||
((Options&DontAlign)==0)
|
||||
&& (
|
||||
#if EIGEN_ALIGN_STATICALLY
|
||||
#if EIGEN_MAX_STATIC_ALIGN_BYTES!=0
|
||||
((!is_dynamic_size_storage) && (((MaxCols*MaxRows*int(sizeof(Scalar))) % align_bytes) == 0))
|
||||
#else
|
||||
0
|
||||
@@ -175,7 +175,7 @@ class compute_matrix_evaluator_flags
|
||||
|
||||
||
|
||||
|
||||
#if EIGEN_ALIGN
|
||||
#if EIGEN_MAX_ALIGN_BYTES!=0
|
||||
is_dynamic_size_storage
|
||||
#else
|
||||
0
|
||||
|
||||
Reference in New Issue
Block a user