libwine_port: Implemented interlocked_cmpxchg64 for x86_64.

This commit is contained in:
Alexandre Julliard 2007-02-05 21:47:29 +01:00
parent 07db8882c2
commit d1f7d2c683
1 changed files with 4 additions and 5 deletions

View File

@ -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"