mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 07:19:37 +02:00
* swapped parameters of InterlockedCompareExchange
git-svn-id: trunk@3366 -
This commit is contained in:
parent
5e4ff16934
commit
729cd9a773
@ -75,15 +75,15 @@ asm
|
||||
end;
|
||||
|
||||
|
||||
function InterLockedCompareExchange(var Target: longint; Compare, NewValue: longint): longint; assembler;
|
||||
function InterLockedCompareExchange(var Target: longint; NewValue, Compare : longint): longint; assembler;
|
||||
asm
|
||||
{$ifdef win64}
|
||||
movl %r8d,%eax
|
||||
lock
|
||||
cmpxchgl %edx,(%rcx)
|
||||
{$else win64}
|
||||
movl %edx,%eax
|
||||
lock
|
||||
cmpxchgl %esi,(%rdi)
|
||||
cmpxchgl %r8d,(%rcx)
|
||||
{$else win64}
|
||||
movl %esi,%eax
|
||||
lock
|
||||
cmpxchgl %edx,(%rdi)
|
||||
{$endif win64}
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user