5 #define rdtsc(low,high) \
6 __asm__ __volatile__("rdtsc" : "=a" (low), "=d" (high))
8 __asm__ __volatile__("rdtsc" : "=a" (low) : : "edx")
10 __asm__ __volatile__("rdtsc" : "=A" (val))
12 extern inline unsigned long long getfast_l(
void)
14 register unsigned int l, h ;
16 __asm__ __volatile__(
"rdtsc" :
"=a" (l),
"=d" (h)) ;
18 return ((
unsigned long long)h<<32) | l ;
22 extern inline unsigned int getfast(
void)
24 register unsigned int l ;
26 __asm__ __volatile__(
"rdtsc" :
"=a" (l) : :
"edx" ) ;