Revision e7ddb0cf libavcodec/i386/cputest.c

View differences:

libavcodec/i386/cputest.c
25 25
/* Function to test if multimedia instructions are supported...  */
26 26
int mm_support(void)
27 27
{
28
    int rval;
28
    int rval = 0;
29 29
    int eax, ebx, ecx, edx;
30 30
    long a, c;
31 31
    
......
64 64
        cpuid(1, eax, ebx, ecx, edx);
65 65
        if ((edx & 0x00800000) == 0)
66 66
            return 0;
67
        rval = MM_MMX;
67
        rval |= MM_MMX;
68 68
        if (edx & 0x02000000) 
69 69
            rval |= MM_MMXEXT | MM_SSE;
70 70
        if (edx & 0x04000000) 
......
85 85
            rval |= MM_3DNOW;
86 86
        if (edx & 0x00400000)
87 87
            rval |= MM_MMXEXT;
88
        return rval;
88
        goto inteltest;
89 89
    } else if (ebx == 0x746e6543 &&
90 90
               edx == 0x48727561 &&
91 91
               ecx == 0x736c7561) {  /*  "CentaurHauls" */

Also available in: Unified diff