This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: More ia64 intrinsics
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.