Mercurial > libavcodec.hg
comparison x86/fft.c @ 12456:a5ddb39627fd libavcodec
Rename FF_MM_ symbols related to CPU features flags as AV_CPU_FLAG_
symbols, and move them from libavcodec/avcodec.h to libavutil/cpu.h.
author | stefano |
---|---|
date | Sat, 04 Sep 2010 09:59:08 +0000 |
parents | db9ef48dc0e4 |
children | 9fef0a8ddd63 |
comparison
equal
deleted
inserted
replaced
12455:14f85520cd02 | 12456:a5ddb39627fd |
---|---|
21 | 21 |
22 av_cold void ff_fft_init_mmx(FFTContext *s) | 22 av_cold void ff_fft_init_mmx(FFTContext *s) |
23 { | 23 { |
24 #if HAVE_YASM | 24 #if HAVE_YASM |
25 int has_vectors = mm_support(); | 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 /* SSE for P3/P4/K8 */ | 27 /* SSE for P3/P4/K8 */ |
28 s->imdct_calc = ff_imdct_calc_sse; | 28 s->imdct_calc = ff_imdct_calc_sse; |
29 s->imdct_half = ff_imdct_half_sse; | 29 s->imdct_half = ff_imdct_half_sse; |
30 s->fft_permute = ff_fft_permute_sse; | 30 s->fft_permute = ff_fft_permute_sse; |
31 s->fft_calc = ff_fft_calc_sse; | 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 /* 3DNowEx for K7 */ | 33 /* 3DNowEx for K7 */ |
34 s->imdct_calc = ff_imdct_calc_3dn2; | 34 s->imdct_calc = ff_imdct_calc_3dn2; |
35 s->imdct_half = ff_imdct_half_3dn2; | 35 s->imdct_half = ff_imdct_half_3dn2; |
36 s->fft_calc = ff_fft_calc_3dn2; | 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 /* 3DNow! for K6-2/3 */ | 38 /* 3DNow! for K6-2/3 */ |
39 s->imdct_calc = ff_imdct_calc_3dn; | 39 s->imdct_calc = ff_imdct_calc_3dn; |
40 s->imdct_half = ff_imdct_half_3dn; | 40 s->imdct_half = ff_imdct_half_3dn; |
41 s->fft_calc = ff_fft_calc_3dn; | 41 s->fft_calc = ff_fft_calc_3dn; |
42 } | 42 } |
45 | 45 |
46 #if CONFIG_DCT | 46 #if CONFIG_DCT |
47 av_cold void ff_dct_init_mmx(DCTContext *s) | 47 av_cold void ff_dct_init_mmx(DCTContext *s) |
48 { | 48 { |
49 int has_vectors = mm_support(); | 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 s->dct32 = ff_dct32_float_sse; | 51 s->dct32 = ff_dct32_float_sse; |
52 } | 52 } |
53 #endif | 53 #endif |
54 | 54 |