From 89871891b12ee8c06bbe5439e7b1802061653d3e Mon Sep 17 00:00:00 2001 From: Hanno Rein Date: Sun, 29 Oct 2023 13:09:44 -0400 Subject: [PATCH] padding --- src/rebound.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/rebound.h b/src/rebound.h index e9a89b790..09c848d94 100644 --- a/src/rebound.h +++ b/src/rebound.h @@ -110,9 +110,21 @@ struct reb_particle { double r; // physical radius double last_collision; // Last time the particle had a physical collision. struct reb_treecell* c; // Pointer to the cell the particle is currently in. +#if !defined(_LP64) + char pad1[4]; // c is short by 4 bytes +#endif uint32_t hash; // Hash, can be used to identify particle. +#if !defined(_LP64) + char pad2[4]; // ap is not padded to 8 bytes +#endif void* ap; // This pointer allows REBOUNDx to add additional properties to the particle. +#if !defined(_LP64) + char pad3[4]; // ap is short by 4 bytes +#endif struct reb_simulation* sim; // Pointer to the parent simulation. +#if !defined(_LP64) + char pad4[4]; // sim is short by 4 bytes +#endif }; // Generic 3d vector