Mercurial > libavcodec.hg
changeset 3591:088be7d7c4fd libavcodec
use ff_fft_calc_3dn2 instead of sse on a K8.
1.5% faster vorbis.
author | lorenm |
---|---|
date | Sat, 19 Aug 2006 02:42:20 +0000 |
parents | a3d97c60ea07 |
children | 6a358dccf2ab |
files | fft.c |
diffstat | 1 files changed, 3 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/fft.c Fri Aug 18 23:53:49 2006 +0000 +++ b/fft.c Sat Aug 19 02:42:20 2006 +0000 @@ -68,17 +68,13 @@ if (has_vectors & MM_3DNOWEXT) s->imdct_calc = ff_imdct_calc_3dn2; if (has_vectors & MM_3DNOWEXT) - /* 3DNowEx for Athlon(XP) */ + /* 3DNowEx for K7/K8 */ s->fft_calc = ff_fft_calc_3dn2; else if (has_vectors & MM_3DNOW) /* 3DNow! for K6-2/3 */ s->fft_calc = ff_fft_calc_3dn; - if (has_vectors & MM_SSE2) - /* SSE for P4/K8 */ - s->fft_calc = ff_fft_calc_sse; - else if ((has_vectors & MM_SSE) && - s->fft_calc == ff_fft_calc_c) - /* SSE for P3 */ + else if (has_vectors & MM_SSE) + /* SSE for P3/P4 */ s->fft_calc = ff_fft_calc_sse; #else /* HAVE_MMX */ if (has_vectors & MM_ALTIVEC)