Blame leveldb-0002-Add-memory-barrier-on-PowerPC.patch
|
|
bfc0460 |
From c34a0153d14127ae189f345b6a4d190e7c8841fe Mon Sep 17 00:00:00 2001
|
|
|
ce9f2c4 |
From: Peter Lemenkov <lemenkov@gmail.com>
|
|
|
ce9f2c4 |
Date: Sat, 19 May 2012 11:33:43 +0400
|
|
|
bfc0460 |
Subject: [PATCH 2/6] Add memory barrier on PowerPC
|
|
|
ce9f2c4 |
|
|
|
ce9f2c4 |
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
|
|
|
ce9f2c4 |
---
|
|
|
2b4f7b2 |
port/atomic_pointer.h | 4 ++--
|
|
|
ce9f2c4 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
ce9f2c4 |
|
|
|
ce9f2c4 |
diff --git a/port/atomic_pointer.h b/port/atomic_pointer.h
|
|
|
2b4f7b2 |
index e17bf43..f1ae174 100644
|
|
|
ce9f2c4 |
--- a/port/atomic_pointer.h
|
|
|
ce9f2c4 |
+++ b/port/atomic_pointer.h
|
|
|
2b4f7b2 |
@@ -50,8 +50,8 @@ namespace port {
|
|
|
ce9f2c4 |
// http://msdn.microsoft.com/en-us/library/ms684208(v=vs.85).aspx
|
|
|
ce9f2c4 |
#define LEVELDB_HAVE_MEMORY_BARRIER
|
|
|
ce9f2c4 |
|
|
|
ce9f2c4 |
-// Gcc on x86
|
|
|
ce9f2c4 |
-#elif defined(ARCH_CPU_X86_FAMILY) && defined(__GNUC__)
|
|
|
ce9f2c4 |
+// GCC on x86, PPC, PPC64, MIPS, MIPS64, s390, S390x, ARM
|
|
|
ce9f2c4 |
+#elif defined(__GNUC__)
|
|
|
ce9f2c4 |
inline void MemoryBarrier() {
|
|
|
ce9f2c4 |
// See http://gcc.gnu.org/ml/gcc/2003-04/msg01180.html for a discussion on
|
|
|
ce9f2c4 |
// this idiom. Also see http://en.wikipedia.org/wiki/Memory_ordering.
|
|
|
ce9f2c4 |
--
|
|
|
bfc0460 |
1.8.3.1
|
|
|
ce9f2c4 |
|