mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-20 05:04:05 +02:00
- remove unnecessary defines
This commit is contained in:
parent
40725146cc
commit
f29fe358ad
@ -150,10 +150,10 @@ function fpc_atomic_cmp_xchg_32 (var Target: longint; NewValue: longint; Compara
|
|||||||
function fpc_atomic_cmp_xchg_64 (var Target: Int64; NewValue: Int64; Comparand: Int64) : Int64; [public,alias:'FPC_ATOMIC_CMP_XCHG_64'];
|
function fpc_atomic_cmp_xchg_64 (var Target: Int64; NewValue: Int64; Comparand: Int64) : Int64; [public,alias:'FPC_ATOMIC_CMP_XCHG_64'];
|
||||||
begin
|
begin
|
||||||
{$ifdef FPC_WASM_THREADS}
|
{$ifdef FPC_WASM_THREADS}
|
||||||
Result:=Int64(fpc_wasm32_i64_atomic_rmw_cmpxchg_u(@Target,QWord({$ifdef VER3_2}Comperand{$else}Comparand{$endif}),LongWord(NewValue)));
|
Result:=Int64(fpc_wasm32_i64_atomic_rmw_cmpxchg_u(@Target,QWord(Comparand}),LongWord(NewValue)));
|
||||||
{$else FPC_WASM_THREADS}
|
{$else FPC_WASM_THREADS}
|
||||||
Result:=Target;
|
Result:=Target;
|
||||||
if Target={$ifdef VER3_2}Comperand{$else}Comparand{$endif} then
|
if Target=Comparand then
|
||||||
Target:=NewValue;
|
Target:=NewValue;
|
||||||
{$endif FPC_WASM_THREADS}
|
{$endif FPC_WASM_THREADS}
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user