Revision be449fca libavcodec/armv4l/dsputil_iwmmxt_rnd.h

View differences:

libavcodec/armv4l/dsputil_iwmmxt_rnd.h
26 26
void DEF(put, pixels8)(uint8_t *block, const uint8_t *pixels, const int line_size, int h)
27 27
{
28 28
    int stride = line_size;
29
    asm volatile (
29
    __asm__ volatile (
30 30
        "and r12, %[pixels], #7 \n\t"
31 31
        "bic %[pixels], %[pixels], #7 \n\t"
32 32
        "tmcr wcgr1, r12 \n\t"
......
60 60
void DEF(avg, pixels8)(uint8_t *block, const uint8_t *pixels, const int line_size, int h)
61 61
{
62 62
    int stride = line_size;
63
    asm volatile (
63
    __asm__ volatile (
64 64
        "and r12, %[pixels], #7 \n\t"
65 65
        "bic %[pixels], %[pixels], #7 \n\t"
66 66
        "tmcr wcgr1, r12 \n\t"
......
102 102
void DEF(put, pixels16)(uint8_t *block, const uint8_t *pixels, const int line_size, int h)
103 103
{
104 104
    int stride = line_size;
105
    asm volatile (
105
    __asm__ volatile (
106 106
        "and r12, %[pixels], #7 \n\t"
107 107
        "bic %[pixels], %[pixels], #7 \n\t"
108 108
        "tmcr wcgr1, r12 \n\t"
......
142 142
void DEF(avg, pixels16)(uint8_t *block, const uint8_t *pixels, const int line_size, int h)
143 143
{
144 144
    int stride = line_size;
145
    asm volatile (
145
    __asm__ volatile (
146 146
        "pld [%[pixels]]                \n\t"
147 147
        "pld [%[pixels], #32]           \n\t"
148 148
        "pld [%[block]]                 \n\t"
......
201 201
    // [wr0 wr1 wr2 wr3] for previous line
202 202
    // [wr4 wr5 wr6 wr7] for current line
203 203
    SET_RND(wr15); // =2 for rnd  and  =1 for no_rnd version
204
    asm volatile(
204
    __asm__ volatile(
205 205
        "pld [%[pixels]]                \n\t"
206 206
        "pld [%[pixels], #32]           \n\t"
207 207
        "and r12, %[pixels], #7         \n\t"
......
250 250
    // [wr0 wr1 wr2 wr3] for previous line
251 251
    // [wr4 wr5 wr6 wr7] for current line
252 252
    SET_RND(wr15); // =2 for rnd  and  =1 for no_rnd version
253
    asm volatile(
253
    __asm__ volatile(
254 254
        "pld [%[pixels]]                \n\t"
255 255
        "pld [%[pixels], #32]           \n\t"
256 256
        "and r12, %[pixels], #7         \n\t"
......
311 311
    // [wr0 wr1 wr2 wr3] for previous line
312 312
    // [wr4 wr5 wr6 wr7] for current line
313 313
    SET_RND(wr15); // =2 for rnd  and  =1 for no_rnd version
314
    asm volatile(
314
    __asm__ volatile(
315 315
        "pld [%[pixels]]                \n\t"
316 316
        "pld [%[pixels], #32]           \n\t"
317 317
        "pld [%[block]]                 \n\t"
......
372 372
    // [wr0 wr1 wr2 wr3] for previous line
373 373
    // [wr4 wr5 wr6 wr7] for current line
374 374
    SET_RND(wr15); // =2 for rnd  and  =1 for no_rnd version
375
    asm volatile(
375
    __asm__ volatile(
376 376
        "pld [%[pixels]]                \n\t"
377 377
        "pld [%[pixels], #32]           \n\t"
378 378
        "pld [%[block]]                 \n\t"
......
448 448
    int stride = line_size;
449 449
    // [wr0 wr1 wr2 wr3] for previous line
450 450
    // [wr4 wr5 wr6 wr7] for current line
451
    asm volatile(
451
    __asm__ volatile(
452 452
        "pld            [%[pixels]]                             \n\t"
453 453
        "pld            [%[pixels], #32]                        \n\t"
454 454
        "and            r12, %[pixels], #7                      \n\t"
......
502 502
    int stride = line_size;
503 503
    // [wr0 wr1 wr2 wr3] for previous line
504 504
    // [wr4 wr5 wr6 wr7] for current line
505
    asm volatile(
505
    __asm__ volatile(
506 506
        "pld [%[pixels]]                \n\t"
507 507
        "pld [%[pixels], #32]           \n\t"
508 508
        "and r12, %[pixels], #7         \n\t"
......
559 559
    int stride = line_size;
560 560
    // [wr0 wr1 wr2 wr3] for previous line
561 561
    // [wr4 wr5 wr6 wr7] for current line
562
    asm volatile(
562
    __asm__ volatile(
563 563
        "pld [%[pixels]]                \n\t"
564 564
        "pld [%[pixels], #32]           \n\t"
565 565
        "and r12, %[pixels], #7         \n\t"
......
627 627
    // [wr0 wr1 wr2 wr3] for previous line
628 628
    // [wr4 wr5 wr6 wr7] for current line
629 629
    SET_RND(wr15); // =2 for rnd  and  =1 for no_rnd version
630
    asm volatile(
630
    __asm__ volatile(
631 631
        "pld [%[pixels]]                \n\t"
632 632
        "mov r12, #2                    \n\t"
633 633
        "pld [%[pixels], #32]           \n\t"
......
721 721
    // [wr0 wr1 wr2 wr3] for previous line
722 722
    // [wr4 wr5 wr6 wr7] for current line
723 723
    SET_RND(wr15); // =2 for rnd  and  =1 for no_rnd version
724
    asm volatile(
724
    __asm__ volatile(
725 725
        "pld [%[pixels]]                \n\t"
726 726
        "mov r12, #2                    \n\t"
727 727
        "pld [%[pixels], #32]           \n\t"
......
863 863
    // [wr0 wr1 wr2 wr3] for previous line
864 864
    // [wr4 wr5 wr6 wr7] for current line
865 865
    SET_RND(wr15); // =2 for rnd  and  =1 for no_rnd version
866
    asm volatile(
866
    __asm__ volatile(
867 867
        "pld [%[block]]                 \n\t"
868 868
        "pld [%[block], #32]            \n\t"
869 869
        "pld [%[pixels]]                \n\t"
......
967 967
    // [wr0 wr1 wr2 wr3] for previous line
968 968
    // [wr4 wr5 wr6 wr7] for current line
969 969
    SET_RND(wr15); // =2 for rnd  and  =1 for no_rnd version
970
    asm volatile(
970
    __asm__ volatile(
971 971
        "pld [%[block]]                 \n\t"
972 972
        "pld [%[block], #32]            \n\t"
973 973
        "pld [%[pixels]]                \n\t"

Also available in: Unified diff