RFC: More ia64 intrinsics
H. J. Lu
hjl@lucon.org
Fri Jun 20 10:32:00 GMT 2003
On Thu, Jun 19, 2003 at 10:20:11PM -0700, Richard Henderson wrote:
> On Thu, Jun 19, 2003 at 07:19:42PM -0700, H. J. Lu wrote:
> > long _InterlockedIncrement(long *addend)
> >
> > Increment the addend by one atomically. Maps to the fetchadd4
> > instruction.
>
> Eh? What's wrong with the ABI defined __sync_fetch_and_add?
>
Most of Intel intrinsics map to machine instructions directly. The ones
defined in the psABI are more generic. Also the psABI only specifies
one kind of operation, usually acq. Intel intrinsics provide both acq
and rel.
H.J.
More information about the Gcc
mailing list