This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]