X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Farch%2Fgcc.h;h=8684a16f92638f0a0f8f5ef08d85ca2b90dbaa10;hp=0c83c238e0e062dfcb386ee310c16bf7b7c9ad36;hb=f8c43f458c80566d298d539ec518a8be8c7cc861;hpb=bc2433a9853a945a825c244e9ccfe341b73b2ceb diff --git a/urcu/arch/gcc.h b/urcu/arch/gcc.h index 0c83c23..8684a16 100644 --- a/urcu/arch/gcc.h +++ b/urcu/arch/gcc.h @@ -24,6 +24,7 @@ #include #include +#include #ifdef __cplusplus extern "C" { @@ -32,19 +33,6 @@ extern "C" { #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 } #endif