cmpxchg.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define LOCK_PREFIX   ""
#define __xg(x)   ((volatile long *)(x))
#define cmpxchg(ptr, o, n)


Define Documentation

#define __xg (  )     ((volatile long *)(x))

Definition at line 23 of file cmpxchg.h.

#define cmpxchg ( ptr,
o,
 ) 

Value:

((__typeof__(*(ptr)))__cmpxchg((ptr),(unsigned long)(o),\
                                     (unsigned long)(n),sizeof(*(ptr))))

Definition at line 58 of file cmpxchg.h.

#define LOCK_PREFIX   ""

Taken from the standard glibc headers: asm-x86_64/system.h Including the standard asm headers never seemed to work properly.

  • they use the keyword new which is offending C++
  • in a newer version (mid-january 2007), the assembly code was even wrong

Definition at line 20 of file cmpxchg.h.


Generated on Sat Feb 20 19:04:26 2010 for Data Objects by  doxygen 1.5.9