Revision 45ed8225

View differences:

libavutil/x86/cpu.c
137 137

  
138 138
    if (!strncmp(vendor.c, "GenuineIntel", 12)) {
139 139
        if (family == 6 && (model == 9 || model == 13 || model == 14)) {
140
        /* 6/9 (pentium-m "banias"), 6/13 (pentium-m "dothan"), and 6/14 (core1 "yonah")
141
         * theoretically support sse2, but it's usually slower than mmx,
142
         * so let's just pretend they don't. AV_CPU_FLAG_SSE2 is disabled and
143
         * AV_CPU_FLAG_SSE2SLOW is enabled so that SSE2 is not used unless
144
         * explicitly enabled by checking AV_CPU_FLAG_SSE2SLOW. The same
145
         * situation applies for AV_CPU_FLAG_SSE3 and AV_CPU_FLAG_SSE3SLOW. */
146
        if (rval & AV_CPU_FLAG_SSE2) rval ^= AV_CPU_FLAG_SSE2SLOW|AV_CPU_FLAG_SSE2;
147
        if (rval & AV_CPU_FLAG_SSE3) rval ^= AV_CPU_FLAG_SSE3SLOW|AV_CPU_FLAG_SSE3;
140
            /* 6/9 (pentium-m "banias"), 6/13 (pentium-m "dothan"), and 6/14 (core1 "yonah")
141
            * theoretically support sse2, but it's usually slower than mmx,
142
            * so let's just pretend they don't. AV_CPU_FLAG_SSE2 is disabled and
143
            * AV_CPU_FLAG_SSE2SLOW is enabled so that SSE2 is not used unless
144
            * explicitly enabled by checking AV_CPU_FLAG_SSE2SLOW. The same
145
            * situation applies for AV_CPU_FLAG_SSE3 and AV_CPU_FLAG_SSE3SLOW. */
146
            if (rval & AV_CPU_FLAG_SSE2) rval ^= AV_CPU_FLAG_SSE2SLOW|AV_CPU_FLAG_SSE2;
147
            if (rval & AV_CPU_FLAG_SSE3) rval ^= AV_CPU_FLAG_SSE3SLOW|AV_CPU_FLAG_SSE3;
148 148
        }
149 149
        /* The Atom processor has SSSE3 support, which is useful in many cases,
150 150
         * but sometimes the SSSE3 version is slower than the SSE2 equivalent

Also available in: Unified diff