[Pkg-mono-svn-commits] [mono] 11/23: Use __sync_sub_and_fetch () for atomic decrements for clarity. (cherry picked from commit e02b11b7081a3dcd02d4b6b01e6e0f92d46b7cb6)
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 3b93dd8ce0cbd782789779831682f9754c8715b5
Author: Alex Rønne Petersen <alexrp at xamarin.com>
Date: Wed Sep 25 20:13:37 2013 +0200
Use __sync_sub_and_fetch () for atomic decrements for clarity.
(cherry picked from commit e02b11b7081a3dcd02d4b6b01e6e0f92d46b7cb6)
---
mono/utils/atomic.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mono/utils/atomic.h b/mono/utils/atomic.h
index 95fd771..bf7f559 100755
--- a/mono/utils/atomic.h
+++ b/mono/utils/atomic.h
@@ -81,7 +81,7 @@ static inline gint32 InterlockedIncrement(volatile gint32 *val)
static inline gint32 InterlockedDecrement(volatile gint32 *val)
{
- return __sync_add_and_fetch (val, -1);
+ return __sync_sub_and_fetch (val, 1);
}
static inline gint32 InterlockedExchange(volatile gint32 *val, gint32 new_val)
--
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