Revision be449fca libavutil/common.h

View differences:

libavutil/common.h
154 154
{
155 155
#ifdef HAVE_CMOV
156 156
    int i=b;
157
    asm volatile(
157
    __asm__ volatile(
158 158
        "cmp    %2, %1 \n\t"
159 159
        "cmovg  %1, %0 \n\t"
160 160
        "cmovg  %2, %1 \n\t"
......
327 327
static inline uint64_t read_time(void)
328 328
{
329 329
    uint64_t a, d;
330
    asm volatile("rdtsc\n\t"
330
    __asm__ volatile("rdtsc\n\t"
331 331
                 : "=a" (a), "=d" (d));
332 332
    return (d << 32) | (a & 0xffffffff);
333 333
}
......
335 335
static inline long long read_time(void)
336 336
{
337 337
    long long l;
338
    asm volatile("rdtsc\n\t"
338
    __asm__ volatile("rdtsc\n\t"
339 339
                 : "=A" (l));
340 340
    return l;
341 341
}
......
349 349
        } p;
350 350
        unsigned long long c;
351 351
    } t;
352
    asm volatile ("%0=cycles; %1=cycles2;" : "=d" (t.p.lo), "=d" (t.p.hi));
352
    __asm__ volatile ("%0=cycles; %1=cycles2;" : "=d" (t.p.lo), "=d" (t.p.hi));
353 353
    return t.c;
354 354
}
355 355
#else //FIXME check ppc64
......
358 358
    uint32_t tbu, tbl, temp;
359 359

  
360 360
     /* from section 2.2.1 of the 32-bit PowerPC PEM */
361
     asm volatile(
361
     __asm__ volatile(
362 362
         "1:\n"
363 363
         "mftbu  %2\n"
364 364
         "mftb   %0\n"

Also available in: Unified diff