Revision 03092e14

View differences:

libavutil/common.h
323 323

  
324 324
#if defined(ARCH_X86) || defined(ARCH_POWERPC) || defined(ARCH_BFIN)
325 325
#define AV_READ_TIME read_time
326
#if defined(ARCH_X86_64)
326
#if defined(ARCH_X86)
327 327
static inline uint64_t read_time(void)
328 328
{
329
    uint64_t a, d;
329
    uint32_t a, d;
330 330
    __asm__ volatile("rdtsc\n\t"
331 331
                 : "=a" (a), "=d" (d));
332
    return (d << 32) | (a & 0xffffffff);
333
}
334
#elif defined(ARCH_X86_32)
335
static inline long long read_time(void)
336
{
337
    long long l;
338
    __asm__ volatile("rdtsc\n\t"
339
                 : "=A" (l));
340
    return l;
332
    return ((uint64_t)d << 32) + a;
341 333
}
342 334
#elif ARCH_BFIN
343 335
static inline uint64_t read_time(void)

Also available in: Unified diff