From d1f7d2c68343338f6a84761708851076a45194c9 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 5 Feb 2007 21:47:29 +0100 Subject: [PATCH] libwine_port: Implemented interlocked_cmpxchg64 for x86_64. --- libs/port/interlocked.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libs/port/interlocked.c b/libs/port/interlocked.c index 6e49437bd8..c2d85b6a13 100644 --- a/libs/port/interlocked.c +++ b/libs/port/interlocked.c @@ -141,11 +141,10 @@ __ASM_GLOBAL_FUNC(interlocked_cmpxchg_ptr, "mov %rdx, %rax\n\t" "lock cmpxchgq %rsi,(%rdi)\n\t" "ret") -__int64 interlocked_cmpxchg64( __int64 *dest, __int64 xchg, __int64 compare) -{ - /* FIXME: add code */ - assert(0); -} +__ASM_GLOBAL_FUNC(interlocked_cmpxchg64, + "mov %rdx, %rax\n\t" + "lock cmpxchgq %rsi,(%rdi)\n\t" + "ret") __ASM_GLOBAL_FUNC(interlocked_xchg, "mov %esi, %eax\n\t" "lock xchgl %eax, (%rdi)\n\t" -- 2.32.0.93.g670b81a890