From 35896dadff634539c0fd2c83113a9133a2c943b5 Mon Sep 17 00:00:00 2001
From: Pedro Gonnet <gonnet@google.com>
Date: Tue, 30 Jan 2018 22:52:20 +0100
Subject: [PATCH] use floats instead of double for cell splitting, makes
 space_rebuild ~10% faster.

---
 src/cell.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/cell.h b/src/cell.h
index 91663d45bf..da6c18d5e8 100644
--- a/src/cell.h
+++ b/src/cell.h
@@ -56,9 +56,9 @@ extern int cell_next_tag;
 
 /* Struct to temporarily buffer the particle locations and bin id. */
 struct cell_buff {
-  double x[3];
+  float x[3];
   int ind;
-} SWIFT_STRUCT_ALIGN;
+} __attribute__((aligned(16)));
 
 /* Mini struct to link cells to tasks. Used as a linked list. */
 struct link {
-- 
GitLab