Go to the documentation of this file. 1 #ifndef _ASM_X86_CMPXCHG_64_H
2 #define _ASM_X86_CMPXCHG_64_H
9 #define __HAVE_ARCH_CMPXCHG 1
11 #define cmpxchg64(ptr, o, n) \
13 BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
14 cmpxchg((ptr), (o), (n)); \
17 #define cmpxchg64_local(ptr, o, n) \
19 BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
20 cmpxchg_local((ptr), (o), (n)); \
23 #define system_has_cmpxchg_double() cpu_has_cx16