From e8d274554c4042f5531bd430a59f1e86a9e01c03 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Fri, 3 Feb 2017 21:48:48 +0000 Subject: [PATCH] Code formatting. --- src/vector.h | 2 +- tests/benchmarkInteractions.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/vector.h b/src/vector.h index f0123068bc..5e7c978ce6 100644 --- a/src/vector.h +++ b/src/vector.h @@ -251,7 +251,7 @@ #define vec_dbl_fmax(a, b) _mm_max_pd(a, b) #define FILL_VEC(a) \ { .f[0] = a, .f[1] = a, .f[2] = a, .f[3] = a } -#define VEC_HADD(a, b) \ +#define VEC_HADD(a, b) \ a.v = _mm_hadd_ps(a.v, a.v); \ b += a.f[0] + a.f[1]; #ifndef vec_fma diff --git a/tests/benchmarkInteractions.c b/tests/benchmarkInteractions.c index a7fe0d7eb8..be23fe0d8d 100644 --- a/tests/benchmarkInteractions.c +++ b/tests/benchmarkInteractions.c @@ -239,7 +239,8 @@ void test_interactions(struct part test_part, struct part *parts, size_t count, struct part *piq[count], *pjq[count]; for (size_t k = 0; k < count; k++) { - piq[k] = NULL; pjq[k] = NULL; + piq[k] = NULL; + pjq[k] = NULL; } #ifdef WITH_VECTORIZATION -- GitLab