[Pkg-mono-svn-commits] [mono] 01/23: Remove unneeded NetBSD code path from atomic.h. (cherry picked from commit 9dd59c1f1381ad7645039e33b7c2120078bfa349)

Jo Shields directhex at alioth.debian.org
Wed Oct 23 22:14:28 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 be0a4a352a2845c384d607408ea7cfa65ba241fb
Author: Alex Rønne Petersen <alexrp at xamarin.com>
Date:   Tue Sep 24 16:59:11 2013 +0200

    Remove unneeded NetBSD code path from atomic.h.
    (cherry picked from commit 9dd59c1f1381ad7645039e33b7c2120078bfa349)
---
 mono/utils/atomic.h |   50 --------------------------------------------------
 1 file changed, 50 deletions(-)

diff --git a/mono/utils/atomic.h b/mono/utils/atomic.h
index 8e57f5d..23e70ca 100755
--- a/mono/utils/atomic.h
+++ b/mono/utils/atomic.h
@@ -11,16 +11,6 @@
 #ifndef _WAPI_ATOMIC_H_
 #define _WAPI_ATOMIC_H_
 
-#if defined(__NetBSD__)
-#include <sys/param.h>
-
-#if __NetBSD_Version__ > 499004000
-#include <sys/atomic.h>
-#define HAVE_ATOMIC_OPS
-#endif
-
-#endif
-
 #include "config.h"
 #include <glib.h>
 
@@ -105,46 +95,6 @@ static inline gint64 InterlockedCompareExchange64(volatile gint64 *dest, gint64
 
 #endif
 
-
-#elif defined(__NetBSD__) && defined(HAVE_ATOMIC_OPS)
-
-static inline gint32 InterlockedCompareExchange(volatile gint32 *dest,
-       gint32 exch, gint32 comp)
-{
-       return atomic_cas_32((uint32_t*)dest, comp, exch);
-}
-
-static inline gpointer InterlockedCompareExchangePointer(volatile gpointer *dest, gpointer exch, gpointer comp)
-{
-       return atomic_cas_ptr(dest, comp, exch);
-}
-
-static inline gint32 InterlockedIncrement(volatile gint32 *val)
-{
-       return atomic_inc_32_nv((uint32_t*)val);
-}
-
-static inline gint32 InterlockedDecrement(volatile gint32 *val)
-{
-       return atomic_dec_32_nv((uint32_t*)val);
-}
-
-static inline gint32 InterlockedExchange(volatile gint32 *val, gint32 new_val)
-{
-       return atomic_swap_32((uint32_t*)val, new_val);
-}
-
-static inline gpointer InterlockedExchangePointer(volatile gpointer *val,
-               gpointer new_val)
-{
-       return atomic_swap_ptr(val, new_val);
-}
-
-static inline gint32 InterlockedExchangeAdd(volatile gint32 *val, gint32 add)
-{
-       return atomic_add_32_nv((uint32_t*)val, add) - add;
-}
-
 #elif (defined(sparc) || defined (__sparc__)) && defined(__GNUC__)
 
 G_GNUC_UNUSED 

-- 
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