[Pkg-mono-svn-commits] [mono] 10/23: Move definition of NEED_64BIT_CMPXCHG_FALLBACK to top of atomic.c. (cherry picked from commit e48f61dc843526bae70b9ff3bd5edae67ce97a77)

Jo Shields directhex at alioth.debian.org
Wed Oct 23 22:14:30 UTC 2013


This is an automated email from the git hooks/post-receive script.

directhex pushed a commit to branch master-experimental-patches/atomics_support_on_fringe_32bit_platforms
in repository mono.

commit f912c778632165fa07bb6e2d420363509da6c9fc
Author: Alex Rønne Petersen <alexrp at xamarin.com>
Date:   Wed Sep 25 20:00:46 2013 +0200

    Move definition of NEED_64BIT_CMPXCHG_FALLBACK to top of atomic.c.
    (cherry picked from commit e48f61dc843526bae70b9ff3bd5edae67ce97a77)
---
 mono/utils/atomic.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/mono/utils/atomic.c b/mono/utils/atomic.c
index e8388b9..0a7be18 100755
--- a/mono/utils/atomic.c
+++ b/mono/utils/atomic.c
@@ -19,6 +19,8 @@
 
 static pthread_mutex_t spin = PTHREAD_MUTEX_INITIALIZER;
 
+#define NEED_64BIT_CMPXCHG_FALLBACK
+
 #endif
 
 #ifdef WAPI_NO_ATOMIC_ASM
@@ -416,8 +418,6 @@ void InterlockedWrite64(volatile gint64 *dst, gint64 val)
 	
 	pthread_cleanup_pop (0);
 }
- 
-#define NEED_64BIT_CMPXCHG_FALLBACK
 
 #endif
 
@@ -433,8 +433,6 @@ InterlockedCompareExchange64(volatile gint64 *dest, gint64 exch, gint64 comp)
 
 #else
 
-#define NEED_64BIT_CMPXCHG_FALLBACK
-
 #endif
 
 #endif

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mono/packages/mono.git



More information about the Pkg-mono-svn-commits mailing list