diff options
author | Gael Guennebaud <g.gael@free.fr> | 2019-01-11 17:10:54 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2019-01-11 17:10:54 +0100 |
commit | 9005f0111f3b5f4d29939ee67a5b516b0585455f (patch) | |
tree | ec3b1434a69b5b8d034911421c77003e5ae21a46 /Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h | |
parent | 89c4001d6f5136fd2702258e4fa754be31d682a1 (diff) |
Replace compiler's alignas/alignof extension by respective c++11 keywords when available. This also fix a compilation issue with gcc-4.7.
Diffstat (limited to 'Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h')
-rw-r--r-- | Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h b/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h index 8c6e4f5c7..9a902c82d 100644 --- a/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +++ b/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h @@ -340,11 +340,7 @@ Packet psincos_float(const Packet& _x) if(predux_any(huge_mask)) { const int PacketSize = unpacket_traits<Packet>::size; - #if EIGEN_HAS_CXX11 - alignas(Packet) float vals[PacketSize]; - #else EIGEN_ALIGN_TO_BOUNDARY(sizeof(Packet)) float vals[PacketSize]; - #endif pstoreu(vals, _x); for(int k=0; k<PacketSize;++k) { float val = vals[k]; |