26#if !defined(_SPANDSP_TIMING_H_)
27#define _SPANDSP_TIMING_H_
29#if defined(__cplusplus)
35__declspec(naked)
unsigned __int64 __cdecl rdtscll(
void)
40 ret ;
return value at EDX:EAX
44#elif defined(__GNUC__)
46static __inline__ uint64_t rdtscll(
void)
50 __asm__ __volatile__(
" rdtsc\n" :
"=A" (now));
54#elif defined(__x86_64__)
55static __inline__ uint64_t rdtscll(
void)
62 __asm__ __volatile__(
" rdtsc\n" :
"=a" (a),
"=d" (d));
63 return ((uint64_t) a) | (((uint64_t) d) << 32);
67static __inline__ uint64_t rdtscll(
void)
76#if defined(__cplusplus)