[fpc-devel] Re: systemh.inc InterLockedIncrement64 (var Target: int64)
Andrew Brunner
andrew.t.brunner at gmail.com
Wed Oct 27 23:28:05 CEST 2010
On Wed, Oct 27, 2010 at 4:14 PM, Florian Klämpfl <florian at freepascal.org> wrote:
> I propose to add the 64 bit CAS for all 32 bit archs (if available): the
> 64 bit CAS instruction on a 32 bit target makes makes a lot "lock-free"
> algorithms simpler.
>
> So you can build your 64 bit interlockedincrement yourself (there is no
> native on any 32 bit target I'am aware of).
I get your logic, and agree, but why not just have ONE call for all
the data types. Why must I use Interlocked*64(...Int64) for the x64
cpu and Interlocked*(...Int64) for the i386 code? Can't we just
consolidate them all to Interlocked*(..._type):_type ???
More information about the fpc-devel
mailing list