# HG changeset patch # User banan # Date 1151805935 0 # Node ID 769d68b12d26d2a7f84d7751c8100f6bee91447a # Parent b956afdc00d98393520fa4203825bbdc04ab4754 ff_fft_init now double checks that the system has mm3dnow.h before checking if the cpu can do 3dnow at all. This bug caused amd cpu's without sse to not have a working fft function. Ie no wma, cook or vorbis decoder. diff -r b956afdc00d9 -r 769d68b12d26 fft.c --- a/fft.c Sun Jul 02 01:52:40 2006 +0000 +++ b/fft.c Sun Jul 02 02:05:35 2006 +0000 @@ -62,7 +62,11 @@ int has_vectors = 0; #if defined(HAVE_MMX) +#ifdef HAVE_MM3DNOW has_vectors = mm_support() & (MM_3DNOW | MM_3DNOWEXT | MM_SSE | MM_SSE2); +#else + has_vectors = mm_support() & (MM_SSE | MM_SSE2); +#endif #endif #if defined(HAVE_ALTIVEC) && !defined(ALTIVEC_USE_REFERENCE_C_CODE) has_vectors = mm_support() & MM_ALTIVEC;