X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Fuatomic_arch_x86.h;h=4e09afd7195aaa835a1478df76a7e9b0e508ff16;hb=06f22bdbb0c4c4d5db42a2e2dc35818aa61415be;hp=666e498f326c4c3b8ce025352b3f385416dbc32b;hpb=f469d83969772a24539eaa24430bc73347a882a3;p=urcu.git diff --git a/urcu/uatomic_arch_x86.h b/urcu/uatomic_arch_x86.h index 666e498..4e09afd 100644 --- a/urcu/uatomic_arch_x86.h +++ b/urcu/uatomic_arch_x86.h @@ -30,18 +30,6 @@ extern "C" { #endif -#ifndef __SIZEOF_LONG__ -#if defined(__x86_64__) || defined(__amd64__) -#define __SIZEOF_LONG__ 8 -#else -#define __SIZEOF_LONG__ 4 -#endif -#endif - -#ifndef BITS_PER_LONG -#define BITS_PER_LONG (__SIZEOF_LONG__ * 8) -#endif - /* * Derived from AO_compare_and_swap() and AO_test_and_set_full(). */ @@ -51,7 +39,7 @@ struct __uatomic_dummy { }; #define __hp(x) ((struct __uatomic_dummy *)(x)) -#define _uatomic_set(addr, v) STORE_SHARED(*(addr), (v)) +#define _uatomic_set(addr, v) CAA_STORE_SHARED(*(addr), (v)) /* cmpxchg */