Logo Search packages:      
Sourcecode: mingw-w64 version File versions  Download package

ilockcxchptr.c

#include <intrin.h>

void *_InterlockedCompareExchangePointer(void * volatile *Destination, void *ExChange, void *Comperand)
{
  void *prev;
  __asm__ __volatile__("lock ; cmpxchgq %1,%2" : "=a" (prev) : "q" (ExChange),"m" (*Destination), "0" (Comperand) : "memory");
  return prev;
}

void *InterlockedCompareExchangePointer(void * volatile *, void *, void *) __attribute__((alias("_InterlockedCompareExchangePointer")));


Generated by  Doxygen 1.6.0   Back to index