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

ilockinc.c

#include <intrin.h>

long _InterlockedIncrement(long volatile *Addend)
{
  long ret = 1;
  __asm__ __volatile__ ("lock\n\t"
             "xaddl %0,%1"
             : "+r" (ret), "+m" (*Addend)
             : : "memory");
  return ret + 1;
}

long InterlockedIncrement(long volatile *) __attribute__((alias("_InterlockedIncrement")));


Generated by  Doxygen 1.6.0   Back to index