Revision f70c2739

View differences:

libavutil/common.h
267 267
        }\
268 268
    }
269 269

  
270
#if defined(ARCH_X86) || defined(ARCH_POWERPC)
270
#if defined(ARCH_X86) || defined(ARCH_POWERPC) || defined(ARCH_BFIN)
271 271
#if defined(ARCH_X86_64)
272 272
static inline uint64_t read_time(void)
273 273
{
......
286 286
        );
287 287
        return l;
288 288
}
289
#elif ARCH_BFIN
290
static inline uint64_t read_time(void)
291
{
292
    union {
293
        struct {
294
            unsigned lo;
295
            unsigned hi;
296
        } p;
297
        unsigned long long c;
298
    } t;
299
    asm volatile ("%0=cycles; %1=cycles2;" : "=d" (t.p.lo), "=d" (t.p.hi));
300
    return t.c;
301
}
289 302
#else //FIXME check ppc64
290 303
static inline uint64_t read_time(void)
291 304
{

Also available in: Unified diff