diff --git a/src/cache.h b/src/cache.h index 40c12dbdf61134d73ae5b1edb1301ce18ce3bd81..52534ecdc81af9707bb98cec913972967a8a1ce2 100644 --- a/src/cache.h +++ b/src/cache.h @@ -413,7 +413,6 @@ __attribute__((always_inline)) INLINE void cache_read_two_partial_cells_sorted( cj_cache->vy[i] = 1.f; cj_cache->vz[i] = 1.f; } - } /* @brief Clean the memory allocated by a #cache object. diff --git a/src/runner_doiact_vec.c b/src/runner_doiact_vec.c index 671a8a59cea0f062e9cad55c6629b19717e6e34a..90b612684d7a8296f0d3802ec539b3b769a0e877 100644 --- a/src/runner_doiact_vec.c +++ b/src/runner_doiact_vec.c @@ -991,7 +991,7 @@ void runner_dopair1_density_vec(struct runner *r, struct cell *ci, if (!cell_is_drifted(ci, e) || !cell_is_drifted(cj, e)) error("Interacting undrifted cells."); - + /* Get the sort ID. */ double shift[3] = {0.0, 0.0, 0.0}; const int sid = space_getsid(e->s, &ci, &cj, shift); diff --git a/src/vector.h b/src/vector.h index 9c69543fc10810e5f1827eb587f568f9fa1fa1ab..7d82b9f5c9e2bc6e1fea9426ab3870eeec180408 100644 --- a/src/vector.h +++ b/src/vector.h @@ -109,10 +109,12 @@ /* Performs a horizontal add on the vector and adds the result to a float. */ #ifdef __ICC #define VEC_HADD(a, b) b += _mm512_reduce_add_ps(a.v) -#else /* _mm512_reduce_add_ps not present in GCC compiler. TODO: Implement intrinsic version.*/ -#define VEC_HADD(a, b) { \ - for( int i=0; i<VEC_SIZE; i++) b += a.f[i]; \ -} +#else /* _mm512_reduce_add_ps not present in GCC compiler. \ + TODO: Implement intrinsic version.*/ +#define VEC_HADD(a, b) \ + { \ + for (int i = 0; i < VEC_SIZE; i++) b += a.f[i]; \ + } #endif /* Calculates the number of set bits in the mask and adds the result to an int. */