[fpc-devel] Re: systemh.inc InterLockedIncrement64 (var Target: int64)

Florian Klaempfl florian at freepascal.org
Thu Oct 28 08:52:04 CEST 2010


Am 27.10.2010 23:50, schrieb Andrew Brunner:
> My current largest issue is that due to source from from x86_64.inc
> 
> function InterLockedIncrement64 (var Target: int64) : int64; assembler;
> asm
> {$ifdef win64}
>         movq    %rcx,%rax
> {$else win64}
>         movq    %rdi,%rax
> {$endif win64}
>         movq    $1,%rdx
>         xchgq   %rdx,%rax
>         lock
>         xaddq   %rax, (%rdx)
>         incq    %rax
> end;
> 
> This code should not be excluded from me under i386 mode.  How many 32
> bit versions of FPC / Lazarus are out there with access to x64 cpu
> instructions. 

None. The x64 instructions are not available to 32 bit code.



More information about the fpc-devel mailing list