mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Replace compiler's alignas/alignof extension by respective c++11 keywords when available. This also fix a compilation issue with gcc-4.7.
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user