X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Farch%2Fgcc.h;h=e5700e451df7757eb1232a3fc8d4f4e9e283eadf;hp=0c83c238e0e062dfcb386ee310c16bf7b7c9ad36;hb=67ecffc0f530a7b5c4dd5111ea7dd3213da8eb91;hpb=9d2614f07691a813a3c560a6c0bcd0a7be854ed5 diff --git a/urcu/arch/gcc.h b/urcu/arch/gcc.h index 0c83c23..e5700e4 100644 --- a/urcu/arch/gcc.h +++ b/urcu/arch/gcc.h @@ -24,28 +24,16 @@ #include #include +#include #ifdef __cplusplus extern "C" { -#endif +#endif #include #include -typedef unsigned long long cycles_t; - -static inline cycles_t caa_get_cycles (void) -{ - cycles_t thetime; - struct timeval tv; - - if (gettimeofday(&tv, NULL) != 0) - return 0; - thetime = ((cycles_t)tv.tv_sec) * 1000000ULL + ((cycles_t)tv.tv_usec); - return (cycles_t)thetime; -} - -#ifdef __cplusplus +#ifdef __cplusplus } #endif