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

ilockdec.c

#include <intrin.h>

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

long InterlockedDecrement(long volatile *) __attribute__((alias("_InterlockedDecrement")));


Generated by  Doxygen 1.6.0   Back to index