Apply clang-format to source tree
[alexxy/gromacs.git] / src / gromacs / simd / impl_x86_avx_128_fma / impl_x86_avx_128_fma_simd_double.h
index 0bbc2a165753350a8215ecc1b4496e0cdf76f739..ce34d19dc68be2a1ff49eb6b0d4f9e38a400422f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2014,2015, by the GROMACS development team, led by
+ * Copyright (c) 2014,2015,2019, 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.
 namespace gmx
 {
 
-static inline double gmx_simdcall
-reduce(SimdDouble a)
+static inline double gmx_simdcall reduce(SimdDouble a)
 {
     __m128d b = _mm_add_sd(a.simdInternal_, _mm_permute_pd(a.simdInternal_, _MM_SHUFFLE2(1, 1)));
-    return *reinterpret_cast<double *>(&b);
+    return *reinterpret_cast<double*>(&b);
 }
 
-static inline SimdDouble gmx_simdcall
-fma(SimdDouble a, SimdDouble b, SimdDouble c)
+static inline SimdDouble gmx_simdcall fma(SimdDouble a, SimdDouble b, SimdDouble c)
 {
-    return {
-               _mm_macc_pd(a.simdInternal_, b.simdInternal_, c.simdInternal_)
-    };
+    return { _mm_macc_pd(a.simdInternal_, b.simdInternal_, c.simdInternal_) };
 }
 
-static inline SimdDouble gmx_simdcall
-fms(SimdDouble a, SimdDouble b, SimdDouble c)
+static inline SimdDouble gmx_simdcall fms(SimdDouble a, SimdDouble b, SimdDouble c)
 {
-    return {
-               _mm_msub_pd(a.simdInternal_, b.simdInternal_, c.simdInternal_)
-    };
+    return { _mm_msub_pd(a.simdInternal_, b.simdInternal_, c.simdInternal_) };
 }
 
-static inline SimdDouble gmx_simdcall
-fnma(SimdDouble a, SimdDouble b, SimdDouble c)
+static inline SimdDouble gmx_simdcall fnma(SimdDouble a, SimdDouble b, SimdDouble c)
 {
-    return {
-               _mm_nmacc_pd(a.simdInternal_, b.simdInternal_, c.simdInternal_)
-    };
+    return { _mm_nmacc_pd(a.simdInternal_, b.simdInternal_, c.simdInternal_) };
 }
 
-static inline SimdDouble gmx_simdcall
-fnms(SimdDouble a, SimdDouble b, SimdDouble c)
+static inline SimdDouble gmx_simdcall fnms(SimdDouble a, SimdDouble b, SimdDouble c)
 {
-    return {
-               _mm_nmsub_pd(a.simdInternal_, b.simdInternal_, c.simdInternal_)
-    };
+    return { _mm_nmsub_pd(a.simdInternal_, b.simdInternal_, c.simdInternal_) };
 }
 
-}      // namespace gmx
+} // namespace gmx
 
 #endif /* GMX_SIMD_IMPL_X86_AVX_128_FMA_SIMD_DOUBLE_H */