Change-Id: Ibca1e9bb2d3a3657fa684050d0080280ac7269d8
#define UNROLLJ (GMX_SIMD_REAL_WIDTH/GMX_SIMD_J_UNROLL_SIZE)
/* The stride of all the atom data arrays is equal to half the SIMD width */
-#define STRIDE (GMX_SIMD_REAL_WIDTH/GMX_SIMD_J_UNROLL_SIZE)
+#define STRIDE UNROLLJ
#include "../nbnxn_kernel_simd_utils.h"
/* Atom indices (of the first atom in the cluster) */
aj = cj*UNROLLJ;
#if defined CALC_LJ && (defined LJ_COMB_GEOM || defined LJ_COMB_LB || defined LJ_EWALD_GEOM)
-#if UNROLLJ == STRIDE
aj2 = aj*2;
-#else
- aj2 = (cj>>1)*2*STRIDE + (cj & 1)*UNROLLJ;
-#endif
#endif
-#if UNROLLJ == STRIDE
ajx = aj*DIM;
-#else
- ajx = (cj>>1)*DIM*STRIDE + (cj & 1)*UNROLLJ;
-#endif
ajy = ajx + STRIDE;
ajz = ajy + STRIDE;