Mercurial > libavcodec.hg
comparison fft.c @ 1009:3b7cc8e4b83f libavcodec
AltiVec perf (take 2), plus a couple AltiVec functions by (Romain Dolbeau <dolbeau at irisa dot fr>)
author | michaelni |
---|---|
date | Thu, 16 Jan 2003 21:54:55 +0000 |
parents | edc10966b081 |
children | 1e39f273ecd6 |
comparison
equal
deleted
inserted
replaced
1008:fb6cbb8a04a3 | 1009:3b7cc8e4b83f |
---|---|
51 s->exptab1 = NULL; | 51 s->exptab1 = NULL; |
52 | 52 |
53 /* compute constant table for HAVE_SSE version */ | 53 /* compute constant table for HAVE_SSE version */ |
54 #if (defined(HAVE_MMX) && defined(HAVE_BUILTIN_VECTOR)) || defined(HAVE_ALTIVEC) | 54 #if (defined(HAVE_MMX) && defined(HAVE_BUILTIN_VECTOR)) || defined(HAVE_ALTIVEC) |
55 { | 55 { |
56 int has_vectors; | 56 int has_vectors = 0; |
57 | 57 |
58 #if defined(HAVE_MMX) | 58 #if defined(HAVE_MMX) |
59 has_vectors = mm_support() & MM_SSE; | 59 has_vectors = mm_support() & MM_SSE; |
60 #endif | 60 #endif |
61 #if defined(HAVE_ALTIVEC) | 61 #if defined(HAVE_ALTIVEC) && !defined(ALTIVEC_USE_REFERENCE_C_CODE) |
62 has_vectors = mm_support() & MM_ALTIVEC; | 62 has_vectors = mm_support() & MM_ALTIVEC; |
63 #endif | 63 #endif |
64 if (has_vectors) { | 64 if (has_vectors) { |
65 int np, nblocks, np2, l; | 65 int np, nblocks, np2, l; |
66 FFTComplex *q; | 66 FFTComplex *q; |