You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2005/09/29 22:33:35 UTC
svn commit: r292534 - /incubator/stdcxx/trunk/include/rw/_mutex.h
Author: sebor
Date: Thu Sep 29 13:33:33 2005
New Revision: 292534
URL: http://svn.apache.org/viewcvs?rev=292534&view=rev
Log:
2005-09-29 Martin Sebor <se...@roguewave.com>
STDCXX-43
* _mutex.h (__rw_atomic_preincrement): Removed the definition of
the duplicate overload for long in code conditionally compiled
for i386 inadvertently left in by rev 292352.
(__rw_atomic_predecrement): Same.
(__rw_atomic_exchange): Same.
Modified:
incubator/stdcxx/trunk/include/rw/_mutex.h
Modified: incubator/stdcxx/trunk/include/rw/_mutex.h
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/include/rw/_mutex.h?rev=292534&r1=292533&r2=292534&view=diff
==============================================================================
--- incubator/stdcxx/trunk/include/rw/_mutex.h (original)
+++ incubator/stdcxx/trunk/include/rw/_mutex.h Thu Sep 29 13:33:33 2005
@@ -1217,22 +1217,6 @@
}
-inline long
-__rw_atomic_preincrement (long &__x, bool)
-{
- _RWSTD_COMPILE_ASSERT (sizeof (long) == sizeof (int));
- return __rw_atomic_add32 (_RWSTD_REINTERPRET_CAST (int*, &__x), 1);
-}
-
-
-inline unsigned long
-__rw_atomic_preincrement (unsigned long &__x, bool)
-{
- _RWSTD_COMPILE_ASSERT (4 == sizeof (unsigned long));
- return __rw_atomic_add32 (_RWSTD_REINTERPRET_CAST (int*, &__x), 1);
-}
-
-
inline char
__rw_atomic_predecrement (char &__x, bool)
{
@@ -1289,22 +1273,6 @@
}
-inline long
-__rw_atomic_predecrement (long &__x, bool)
-{
- _RWSTD_COMPILE_ASSERT (4 == sizeof (long));
- return __rw_atomic_add32 (_RWSTD_REINTERPRET_CAST (int*, &__x), -1);
-}
-
-
-inline unsigned long
-__rw_atomic_predecrement (unsigned long &__x, bool)
-{
- _RWSTD_COMPILE_ASSERT (4 == sizeof (unsigned long));
- return __rw_atomic_add32 (_RWSTD_REINTERPRET_CAST (int*, &__x), -1);
-}
-
-
inline char
__rw_atomic_exchange (char &__x, char __y, bool)
{
@@ -1365,23 +1333,6 @@
}
-inline long
-__rw_atomic_exchange (long &__x, long __y, bool)
-{
- _RWSTD_COMPILE_ASSERT (4 == sizeof (long));
- return __rw_atomic_xchg32 (_RWSTD_REINTERPRET_CAST (int*, &__x),
- _RWSTD_STATIC_CAST (int, __y));
-}
-
-
-inline unsigned long
-__rw_atomic_exchange (unsigned long &__x, unsigned long __y, bool)
-{
- _RWSTD_COMPILE_ASSERT (4 == sizeof (unsigned long));
- return __rw_atomic_xchg32 (_RWSTD_REINTERPRET_CAST (int*, &__x),
- _RWSTD_STATIC_CAST (int, __y));
-}
-
/********************** WIN 32/64 ************************************/
#elif defined (_WIN32) && !defined (_RWSTD_NO_ATOMIC_OPERATIONS)
@@ -1646,6 +1597,7 @@
}
#endif // _RWSTD_LONG_SIZE
+
inline char
__rw_atomic_exchange (char &__x, char __y, bool)