diff options
author | Joel Holdsworth <joel.holdsworth@vcatechnology.com> | 2019-11-07 14:34:06 +0000 |
---|---|---|
committer | Joel Holdsworth <joel.holdsworth@vcatechnology.com> | 2019-11-07 14:34:06 +0000 |
commit | 86eb41f1cb016916d0813da851ec39a244ff6d8f (patch) | |
tree | e0014b718d94d731606cdce370b8c89a11c20ec3 /Eigen/src/Core/util/Meta.h | |
parent | 743c92528639f466eb887655b5f0fa872105326a (diff) |
SparseRef: Fixed alignment warning on ARM GCC
Diffstat (limited to 'Eigen/src/Core/util/Meta.h')
-rwxr-xr-x | Eigen/src/Core/util/Meta.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h index fe9550d71..2153f2c0d 100755 --- a/Eigen/src/Core/util/Meta.h +++ b/Eigen/src/Core/util/Meta.h @@ -612,6 +612,16 @@ template<typename T, typename U> struct scalar_product_traits // typedef typename scalar_product_traits<typename remove_all<ArgType0>::type, typename remove_all<ArgType1>::type>::ReturnType type; // }; +/** \internal Obtains a POD type suitable to use as storage for an object of a size + * of at most Len bytes, aligned as specified by \c Align. + */ +template<unsigned Len, unsigned Align> +struct aligned_storage { + struct type { + EIGEN_ALIGN_TO_BOUNDARY(Align) unsigned char data[Len]; + }; +}; + } // end namespace internal namespace numext { |