summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/sync/sync_ntc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/sync/sync_ntc.cpp')
-rw-r--r--src/osd/modules/sync/sync_ntc.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/osd/modules/sync/sync_ntc.cpp b/src/osd/modules/sync/sync_ntc.cpp
index c78f67ce64a..4ff70a57c09 100644
--- a/src/osd/modules/sync/sync_ntc.cpp
+++ b/src/osd/modules/sync/sync_ntc.cpp
@@ -43,11 +43,8 @@ struct osd_event {
pthread_cond_t cond;
volatile INT32 autoreset;
volatile INT32 signalled;
-#ifdef PTR64
- INT8 padding[40]; // Fill a 64-byte cache line
-#else
- INT8 padding[48]; // A bit more padding
-#endif
+ // Fill a 64-byte cache line (a bit more padding with smaller pointers)
+ INT8 padding[(sizeof(void *) >= 8) ? 40 : 48];
};