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

ilockexch.c

#include <intrin.h>

long _InterlockedExchange(long volatile *Target, long Value)
{
  __asm__ __volatile("lock ; xchgl %0,%1"
    : "=r"(Value)
    : "m"(*Target),"0"(Value)
    : "memory");
  return Value;
}

long InterlockedExchange(long volatile *, long) __attribute__((alias("_InterlockedExchange")));


Generated by  Doxygen 1.6.0   Back to index