X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Farch%2Fx86.h;h=a5b3a23b385f26f7aea6b5daaf70cab762fc4262;hp=ecc4b2d39b4133cb026fbe98be6cace2c5c3e223;hb=67ecffc0f530a7b5c4dd5111ea7dd3213da8eb91;hpb=999991c6e4600c410181baea65bda9f406464872 diff --git a/urcu/arch/x86.h b/urcu/arch/x86.h index ecc4b2d..a5b3a23 100644 --- a/urcu/arch/x86.h +++ b/urcu/arch/x86.h @@ -28,7 +28,7 @@ #ifdef __cplusplus extern "C" { -#endif +#endif #define CAA_CACHE_LINE_SIZE 128 @@ -69,6 +69,8 @@ extern "C" { #define caa_cpu_relax() __asm__ __volatile__ ("rep; nop" : : : "memory") +#define HAS_CAA_GET_CYCLES + #define rdtscll(val) \ do { \ unsigned int __a, __d; \ @@ -101,7 +103,7 @@ static inline cycles_t caa_get_cycles(void) #endif #endif -#ifdef __cplusplus +#ifdef __cplusplus } #endif