IBM XL C compiler supports __attribute__((aligned(n))) syntax

This commit is contained in:
Gael Guennebaud 2010-11-19 17:33:51 +01:00
parent 8ad1f64e0a
commit 86474115f5

View File

@ -220,7 +220,7 @@
*/
#if !EIGEN_ALIGN_STATICALLY
#define EIGEN_ALIGN_TO_BOUNDARY(n)
#elif (defined __GNUC__) || (defined __PGI)
#elif (defined __GNUC__) || (defined __PGI) || (defined __IBMCPP__)
#define EIGEN_ALIGN_TO_BOUNDARY(n) __attribute__((aligned(n)))
#elif (defined _MSC_VER)
#define EIGEN_ALIGN_TO_BOUNDARY(n) __declspec(align(n))