Revision 7160bb71 libavcodec/x86/fft.c

View differences:

libavcodec/x86/fft.c
23 23
{
24 24
#if HAVE_YASM
25 25
    int has_vectors = mm_support();
26
    if (has_vectors & FF_MM_SSE && HAVE_SSE) {
26
    if (has_vectors & AV_CPU_FLAG_SSE && HAVE_SSE) {
27 27
        /* SSE for P3/P4/K8 */
28 28
        s->imdct_calc  = ff_imdct_calc_sse;
29 29
        s->imdct_half  = ff_imdct_half_sse;
30 30
        s->fft_permute = ff_fft_permute_sse;
31 31
        s->fft_calc    = ff_fft_calc_sse;
32
    } else if (has_vectors & FF_MM_3DNOWEXT && HAVE_AMD3DNOWEXT) {
32
    } else if (has_vectors & AV_CPU_FLAG_3DNOWEXT && HAVE_AMD3DNOWEXT) {
33 33
        /* 3DNowEx for K7 */
34 34
        s->imdct_calc = ff_imdct_calc_3dn2;
35 35
        s->imdct_half = ff_imdct_half_3dn2;
36 36
        s->fft_calc   = ff_fft_calc_3dn2;
37
    } else if (has_vectors & FF_MM_3DNOW && HAVE_AMD3DNOW) {
37
    } else if (has_vectors & AV_CPU_FLAG_3DNOW && HAVE_AMD3DNOW) {
38 38
        /* 3DNow! for K6-2/3 */
39 39
        s->imdct_calc = ff_imdct_calc_3dn;
40 40
        s->imdct_half = ff_imdct_half_3dn;
......
47 47
av_cold void ff_dct_init_mmx(DCTContext *s)
48 48
{
49 49
    int has_vectors = mm_support();
50
    if (has_vectors & FF_MM_SSE && HAVE_SSE)
50
    if (has_vectors & AV_CPU_FLAG_SSE && HAVE_SSE)
51 51
        s->dct32 = ff_dct32_float_sse;
52 52
}
53 53
#endif

Also available in: Unified diff