From 98ca10c89da597da57ce975586992dad3159c259 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 5 Feb 2010 12:23:48 +0100 Subject: [PATCH] ntdll: Export RtlInterlockedCompareExchange64. --- dlls/ntdll/large_int.c | 12 ++++++++++++ dlls/ntdll/ntdll.spec | 1 + 2 files changed, 13 insertions(+) diff --git a/dlls/ntdll/large_int.c b/dlls/ntdll/large_int.c index 46068b3a152..e2b0734bb60 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 #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 c7c81e8bcd2..241f3d8a7ae 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) -- 2.11.4.GIT