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

ilockinc64.c

#include <intrin.h>

__int64 _InterlockedIncrement64(__int64 volatile *Addend)
{
  __int64 ret = 1LL;
  __asm__ __volatile__ ("lock\n\t"
             "xaddq %0,%1"
             : "+r" (ret), "+m" (*Addend)
             : : "memory");
  return ret + 1LL;
}

__int64 InterlockedIncrement64(__int64 volatile *) __attribute__((alias("_InterlockedIncrement64")));


Generated by  Doxygen 1.6.0   Back to index