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

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Oct 27 10:50:42 CEST 2010


On 27 Oct 2010, at 09:04, Florian Klaempfl wrote:

> Am 27.10.2010 05:15, schrieb Andrew Brunner:
>> Interlocked features for Int64 are bound to {$ifdef cpu64}
>>
>> While Int64 data type is supported under i386 FPC the interlocked
>> features aren't included in FPC RTL.
>>
>> Can I writeup a bug for this or is this due to another problem?
>
> 32 bit CPUs can do at most InterlockedCompareExchange as native 64 bit
> operation. Everything else must be emulated.

And the functionality necessary for InterlockedCompareExchange64 is  
only available natively on i386, afaik. The system unit's interface is  
platform-independent. It could be added to the rtl/i386/cpu.pp unit if  
someone submits a patch, I guess.


Jonas



More information about the fpc-devel mailing list