~ppsspp/ppsspp/ffmpeg-upstream

« back to all changes in this revision

Viewing changes to libswscale/x86/rgb2rgb_template.c

  • Committer: Sérgio Benjamim
  • Date: 2015-07-20 03:55:05 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20150720035505-i1jj1zcjcnd0mc7w
Updated to 2.7.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1090
1090
        : "r" (s), "r" (d), "m" (mask32b), "m" (mask32r), "m" (mmx_one)
1091
1091
        : "memory");
1092
1092
    for (; idx<15; idx+=4) {
1093
 
        register int v = *(const uint32_t *)&s[idx], g = v & 0xff00ff00;
 
1093
        register unsigned v  = *(const uint32_t *)&s[idx], g = v & 0xff00ff00;
1094
1094
        v &= 0xff00ff;
1095
1095
        *(uint32_t *)&d[idx] = (v>>16) + g + (v<<16);
1096
1096
    }
1905
1905
            "cmp                     %3, %%"REG_a"  \n\t"
1906
1906
            " jb                     1b             \n\t"
1907
1907
            ::"r"(dest), "r"(src1), "r"(src2), "r" ((x86_reg)width-15)
1908
 
            : "memory", "%"REG_a""
 
1908
            : "memory", XMM_CLOBBERS("xmm0", "xmm1", "xmm2",) "%"REG_a
1909
1909
        );
1910
1910
#else
1911
1911
        __asm__(
1943
1943
        src2 += src2Stride;
1944
1944
    }
1945
1945
    __asm__(
 
1946
#if !COMPILE_TEMPLATE_SSE2
1946
1947
            EMMS"       \n\t"
 
1948
#endif
1947
1949
            SFENCE"     \n\t"
1948
1950
            ::: "memory"
1949
1951
            );
1971
1973
        dst2 += dst2Stride;
1972
1974
    }
1973
1975
    __asm__(
 
1976
#if !COMPILE_TEMPLATE_SSE2
1974
1977
            EMMS"       \n\t"
 
1978
#endif
1975
1979
            SFENCE"     \n\t"
1976
1980
            ::: "memory"
1977
1981
            );