mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 19:59:18 +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;
|
end;
|
||||||
|
|
||||||
|
|
||||||
function InterLockedCompareExchange(var Target: longint; Compare, NewValue: longint): longint; assembler;
|
function InterLockedCompareExchange(var Target: longint; NewValue, Compare : longint): longint; assembler;
|
||||||
asm
|
asm
|
||||||
{$ifdef win64}
|
{$ifdef win64}
|
||||||
movl %r8d,%eax
|
|
||||||
lock
|
|
||||||
cmpxchgl %edx,(%rcx)
|
|
||||||
{$else win64}
|
|
||||||
movl %edx,%eax
|
movl %edx,%eax
|
||||||
lock
|
lock
|
||||||
cmpxchgl %esi,(%rdi)
|
cmpxchgl %r8d,(%rcx)
|
||||||
|
{$else win64}
|
||||||
|
movl %esi,%eax
|
||||||
|
lock
|
||||||
|
cmpxchgl %edx,(%rdi)
|
||||||
{$endif win64}
|
{$endif win64}
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user