ntdll: Export RtlInterlockedCompareExchange64.
authorAlexandre Julliard <julliard@winehq.org>
Fri, 5 Feb 2010 11:23:48 +0000 (12:23 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 5 Feb 2010 11:23:48 +0000 (12:23 +0100)
dlls/ntdll/large_int.c
dlls/ntdll/ntdll.spec

index 46068b3a1529d1d070582ad3e2bbf31b6c7a27b0..e2b0734bb6052303432c60eddeb87f6ae421d169 100644 (file)
@@ -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 */
 
 /******************************************************************************
index c7c81e8bcd211e5a0c6f047b3f71a9d6d356d9a7..241f3d8a7ae205dcaf20d51bd92f6f3f251d98f3 100644 (file)
 @ 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)