Move aligned cache line constant to commun header.
This commit is contained in:
1 parent
8489d0df97
commit
646df4f34e
2 files changed
+11
-12
No files matched your search
@@ -62,6 +62,14 @@
|
||||
# define M_UNLIKELY(cond) (cond)
|
||||
#endif
|
||||
|
||||
/* Define the exclusion size so that 2 atomic variables can be in
|
||||
separate cache line. This prevents false sharing to occur within the
|
||||
CPU cache. */
|
||||
#if defined(_M_X64) || defined(_M_AMD64) || defined(__x86_64__)
|
||||
# define M_ALIGN_FOR_CACHELINE_EXCLUSION 128
|
||||
#else
|
||||
# define M_ALIGN_FOR_CACHELINE_EXCLUSION 64
|
||||
#endif
|
||||
|
||||
/***************************************************************/
|
||||
/****************** Preprocessing Times Macro ******************/
|
||||
|
||||
Reference in new issue
Block a user