X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Farch%2Fgcc.h;h=e5700e451df7757eb1232a3fc8d4f4e9e283eadf;hp=5638f3667a69b50ceb38d4ecbb19214d21879642;hb=67ecffc0f530a7b5c4dd5111ea7dd3213da8eb91;hpb=999991c6e4600c410181baea65bda9f406464872 diff --git a/urcu/arch/gcc.h b/urcu/arch/gcc.h index 5638f36..e5700e4 100644 --- a/urcu/arch/gcc.h +++ b/urcu/arch/gcc.h @@ -28,25 +28,12 @@ #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