|
|
@ -287,8 +287,7 @@ static inline uint64_t read_time(void) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint64_t a, d; |
|
|
|
uint64_t a, d; |
|
|
|
asm volatile("rdtsc\n\t" |
|
|
|
asm volatile("rdtsc\n\t" |
|
|
|
: "=a" (a), "=d" (d) |
|
|
|
: "=a" (a), "=d" (d)); |
|
|
|
); |
|
|
|
|
|
|
|
return (d << 32) | (a & 0xffffffff); |
|
|
|
return (d << 32) | (a & 0xffffffff); |
|
|
|
} |
|
|
|
} |
|
|
|
#elif defined(ARCH_X86_32) |
|
|
|
#elif defined(ARCH_X86_32) |
|
|
@ -296,8 +295,7 @@ static inline long long read_time(void) |
|
|
|
{ |
|
|
|
{ |
|
|
|
long long l; |
|
|
|
long long l; |
|
|
|
asm volatile("rdtsc\n\t" |
|
|
|
asm volatile("rdtsc\n\t" |
|
|
|
: "=A" (l) |
|
|
|
: "=A" (l)); |
|
|
|
); |
|
|
|
|
|
|
|
return l; |
|
|
|
return l; |
|
|
|
} |
|
|
|
} |
|
|
|
#elif ARCH_BFIN |
|
|
|
#elif ARCH_BFIN |
|
|
@ -354,7 +352,8 @@ tend= AV_READ_TIME();\ |
|
|
|
}else\
|
|
|
|
}else\
|
|
|
|
tskip_count++;\
|
|
|
|
tskip_count++;\
|
|
|
|
if(((tcount+tskip_count)&(tcount+tskip_count-1))==0){\
|
|
|
|
if(((tcount+tskip_count)&(tcount+tskip_count-1))==0){\
|
|
|
|
av_log(NULL, AV_LOG_DEBUG, "%"PRIu64" dezicycles in %s, %d runs, %d skips\n", tsum*10/tcount, id, tcount, tskip_count);\
|
|
|
|
av_log(NULL, AV_LOG_DEBUG, "%"PRIu64" dezicycles in %s, %d runs, %d skips\n",\
|
|
|
|
|
|
|
|
tsum*10/tcount, id, tcount, tskip_count);\
|
|
|
|
}\
|
|
|
|
}\
|
|
|
|
} |
|
|
|
} |
|
|
|
#else |
|
|
|
#else |
|
|
|