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: intrinsic function for the assembly x86 xchg command


On Fri, Apr 7, 2017 at 2:08 PM, fab10 <0xfab10@gmail.com> wrote:
> It would be usefull to develop in gcc an intrinsic function for the assembly
> x86 instruction xchg to implement a low level mutex.

I believe that's what atomic_exchange is lowered to on x86?


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