Merge branch release-2018
[alexxy/gromacs.git] / src / gromacs / simd / tests / simd4.cpp
index edb66badf06bc5dceca67bfb37352965ee630b5d..86858d67b88f765da4752d8b21536e6dc1e1014e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2014,2015,2017, by the GROMACS development team, led by
+ * Copyright (c) 2014,2015,2017,2018, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -86,7 +86,7 @@ const Simd4Real rSimd4_logicalResultOr  = setSimd4RealFrom1R(1.8666534423828125)
 ::std::vector<real>
 simd4Real2Vector(const Simd4Real simd4)
 {
-    GMX_ALIGNED(real, GMX_SIMD4_WIDTH)  mem[GMX_SIMD4_WIDTH];
+    alignas(GMX_SIMD_ALIGNMENT) real  mem[GMX_SIMD4_WIDTH];
 
     store4(mem, simd4);
     std::vector<real>   v(mem, mem+GMX_SIMD4_WIDTH);
@@ -97,7 +97,7 @@ simd4Real2Vector(const Simd4Real simd4)
 Simd4Real
 vector2Simd4Real(const std::vector<real> &v)
 {
-    GMX_ALIGNED(real, GMX_SIMD4_WIDTH)  mem[GMX_SIMD4_WIDTH];
+    alignas(GMX_SIMD_ALIGNMENT) real  mem[GMX_SIMD4_WIDTH];
 
     for (int i = 0; i < GMX_SIMD4_WIDTH; i++)
     {