summaryrefslogtreecommitdiff
path: root/boost/lockfree/detail/prefix.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/lockfree/detail/prefix.hpp')
-rw-r--r--boost/lockfree/detail/prefix.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/boost/lockfree/detail/prefix.hpp b/boost/lockfree/detail/prefix.hpp
index 0c9f29af16..6ad96d1fe6 100644
--- a/boost/lockfree/detail/prefix.hpp
+++ b/boost/lockfree/detail/prefix.hpp
@@ -13,7 +13,12 @@
of the virtual address space as tag (at least 16bit)
*/
-#define BOOST_LOCKFREE_CACHELINE_BYTES 64
+// PowerPC caches support 128-byte cache lines.
+#if defined(powerpc) || defined(__powerpc__) || defined(__ppc__)
+ #define BOOST_LOCKFREE_CACHELINE_BYTES 128
+#else
+ #define BOOST_LOCKFREE_CACHELINE_BYTES 64
+#endif
#include <boost/predef.h>