aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/util/Meta.h
diff options
context:
space:
mode:
authorGravatar Joel Holdsworth <joel.holdsworth@vcatechnology.com>2019-11-07 14:34:06 +0000
committerGravatar Joel Holdsworth <joel.holdsworth@vcatechnology.com>2019-11-07 14:34:06 +0000
commit86eb41f1cb016916d0813da851ec39a244ff6d8f (patch)
treee0014b718d94d731606cdce370b8c89a11c20ec3 /Eigen/src/Core/util/Meta.h
parent743c92528639f466eb887655b5f0fa872105326a (diff)
SparseRef: Fixed alignment warning on ARM GCC
Diffstat (limited to 'Eigen/src/Core/util/Meta.h')
-rwxr-xr-xEigen/src/Core/util/Meta.h10
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 {