Alexandre Julliard : ntdll: Export RtlInterlockedCompareExchange64.

Alexandre Julliard julliard at winehq.org
Fri Feb 5 08:42:32 CST 2010


Module: wine
Branch: master
Commit: 98ca10c89da597da57ce975586992dad3159c259
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=98ca10c89da597da57ce975586992dad3159c259

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Feb  5 12:23:48 2010 +0100

ntdll: Export RtlInterlockedCompareExchange64.

---

 dlls/ntdll/large_int.c |   12 ++++++++++++
 dlls/ntdll/ntdll.spec  |    1 +
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/dlls/ntdll/large_int.c b/dlls/ntdll/large_int.c
index 46068b3..e2b0734 100644
--- a/dlls/ntdll/large_int.c
+++ b/dlls/ntdll/large_int.c
@@ -19,6 +19,9 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
+#include "config.h"
+#include "wine/port.h"
+
 #include <stdarg.h>
 
 #include "ntstatus.h"
@@ -375,6 +378,15 @@ LONGLONG WINAPI RtlExtendedMagicDivide(
     } /* if */
 }
 
+
+/*************************************************************************
+ *        RtlInterlockedCompareExchange64   (NTDLL.@)
+ */
+LONGLONG WINAPI RtlInterlockedCompareExchange64( LONGLONG *dest, LONGLONG xchg, LONGLONG compare )
+{
+    return interlocked_cmpxchg64( dest, xchg, compare );
+}
+
 #endif  /* _WIN64 */
 
 /******************************************************************************
diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec
index c7c81e8..241f3d8 100644
--- a/dlls/ntdll/ntdll.spec
+++ b/dlls/ntdll/ntdll.spec
@@ -684,6 +684,7 @@
 @ stdcall RtlInt64ToUnicodeString(double long ptr)
 @ stdcall RtlIntegerToChar(long long long ptr)
 @ stdcall RtlIntegerToUnicodeString(long long ptr)
+@ stdcall -arch=win32 -ret64 RtlInterlockedCompareExchange64(ptr double double)
 @ stdcall RtlInterlockedFlushSList(ptr)
 @ stdcall RtlInterlockedPopEntrySList(ptr)
 @ stdcall RtlInterlockedPushEntrySList(ptr ptr)




More information about the wine-cvs mailing list