Added parentheses for casts in SIMD macros
[alexxy/gromacs.git] / src / gromacs / simd / impl_ibm_vmx / impl_ibm_vmx.h
index 810a13433ba3ecf787f4b3fb67e3864ee60b1789..66b2986925a9a607111339765f235549de6e1196 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2014, by the GROMACS development team, led by
+ * Copyright (c) 2014,2015, 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.
  *      SINGLE PRECISION SIMD IMPLEMENTATION        *
  ****************************************************/
 #define gmx_simd_float_t           __vector float
-#define gmx_simd_load_f(m)         vec_ld(0, (const __vector float *)m)
+#define gmx_simd_load_f(m)         vec_ld(0, (const __vector float *)(m))
 #define gmx_simd_load1_f(m)        gmx_simd_load1_f_ibm_vmx(m)
 #define gmx_simd_set1_f(x)         gmx_simd_set1_f_ibm_vmx(x)
-#define gmx_simd_store_f(m, x)     vec_st(x, 0, (__vector float *)m)
+#define gmx_simd_store_f(m, x)     vec_st(x, 0, (__vector float *)(m))
 #undef  gmx_simd_loadu_f
 #undef  gmx_simd_storeu_f
 #define gmx_simd_setzero_f()       ((__vector float)vec_splat_u32(0))
 #define gmx_simd_set_exponent_f(a) gmx_simd_set_exponent_f_ibm_vmx(a)
 /* integer datatype corresponding to float: gmx_simd_fint32_t */
 #define gmx_simd_fint32_t          __vector int
-#define gmx_simd_load_fi(m)        vec_ld(0, (const __vector int *)m)
-#define gmx_simd_set1_fi(i)        gmx_simd_set1_fi_ibm_vmx((int)i)
-#define gmx_simd_store_fi(m, x)    vec_st(x, 0, (__vector int *)m)
+#define gmx_simd_load_fi(m)        vec_ld(0, (const __vector int *)(m))
+#define gmx_simd_set1_fi(i)        gmx_simd_set1_fi_ibm_vmx((int)(i))
+#define gmx_simd_store_fi(m, x)    vec_st(x, 0, (__vector int *)(m))
 #undef  gmx_simd_loadu_fi
 #undef  gmx_simd_storeu_fi
 #define gmx_simd_setzero_fi()      vec_splat_s32(0)