summaryrefslogtreecommitdiff
path: root/libavcodec/fft.c
diff options
context:
space:
mode:
authorDominik Mierzejewski <dominik@rangers.eu.org>2008-11-03 18:08:00 +0000
committerDominik Mierzejewski <dominik@rangers.eu.org>2008-11-03 18:08:00 +0000
commit82d1605fe74a3a702a818f8ac6f3c780bf8bbea9 (patch)
treeefd7ea31bd085d342874c773ab7557727aba205e /libavcodec/fft.c
parentc6eaba62e80d673f9a285378dc0cdceebe039f13 (diff)
Remove duplicated MM_* macros for CPU capabilities from dsputil.h.
Add missing one for FF_MM_ALTIVEC to avcodec.h. Rename all the occurences of MM_* to the corresponding FF_MM_*. Originally committed as revision 15770 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/fft.c')
-rw-r--r--libavcodec/fft.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/fft.c b/libavcodec/fft.c
index 4e32b039e8..7c8cce84c6 100644
--- a/libavcodec/fft.c
+++ b/libavcodec/fft.c
@@ -93,18 +93,18 @@ int ff_fft_init(FFTContext *s, int nbits, int inverse)
#if defined HAVE_MMX && defined HAVE_YASM
has_vectors = mm_support();
- if (has_vectors & MM_SSE) {
+ if (has_vectors & FF_MM_SSE) {
/* SSE for P3/P4/K8 */
s->imdct_calc = ff_imdct_calc_sse;
s->imdct_half = ff_imdct_half_sse;
s->fft_permute = ff_fft_permute_sse;
s->fft_calc = ff_fft_calc_sse;
- } else if (has_vectors & MM_3DNOWEXT) {
+ } else if (has_vectors & FF_MM_3DNOWEXT) {
/* 3DNowEx for K7 */
s->imdct_calc = ff_imdct_calc_3dn2;
s->imdct_half = ff_imdct_half_3dn2;
s->fft_calc = ff_fft_calc_3dn2;
- } else if (has_vectors & MM_3DNOW) {
+ } else if (has_vectors & FF_MM_3DNOW) {
/* 3DNow! for K6-2/3 */
s->imdct_calc = ff_imdct_calc_3dn;
s->imdct_half = ff_imdct_half_3dn;
@@ -112,7 +112,7 @@ int ff_fft_init(FFTContext *s, int nbits, int inverse)
}
#elif defined HAVE_ALTIVEC && !defined ALTIVEC_USE_REFERENCE_C_CODE
has_vectors = mm_support();
- if (has_vectors & MM_ALTIVEC) {
+ if (has_vectors & FF_MM_ALTIVEC) {
s->fft_calc = ff_fft_calc_altivec;
split_radix = 0;
}