cmpxchg.h File Reference
Go to the source code of this file.
Define Documentation
#define __xg |
( |
x |
|
) |
((volatile long *)(x)) |
#define cmpxchg |
( |
ptr, |
|
|
o, |
|
|
n |
|
) |
|
Value:
((__typeof__(*(ptr)))__cmpxchg((ptr),(unsigned long)(o),\
(unsigned long)(n),sizeof(*(ptr))))
Definition at line 77 of file cmpxchg.h.
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 39 of file cmpxchg.h.