# HG changeset patch # User bellard # Date 1041961303 0 # Node ID 64f1a11b5f86f59e86b9c1000cef0325eaec5dc8 # Parent 274b518c4ecbe5d23c648c6df9cb824cd4de2e60 added define for builtins use - inverse fix by Romain Dolbeau diff -r 274b518c4ecb -r 64f1a11b5f86 i386/fft_sse.c --- a/i386/fft_sse.c Tue Jan 07 13:00:38 2003 +0000 +++ b/i386/fft_sse.c Tue Jan 07 17:41:43 2003 +0000 @@ -19,11 +19,16 @@ #include "../dsputil.h" #include +#ifdef HAVE_BUILTIN_VECTOR + #include static const float p1p1p1m1[4] __attribute__((aligned(16))) = { 1.0, 1.0, 1.0, -1.0 }; +static const float p1p1m1p1[4] __attribute__((aligned(16))) = + { 1.0, 1.0, -1.0, 1.0 }; + static const float p1p1m1m1[4] __attribute__((aligned(16))) = { 1.0, 1.0, -1.0, -1.0 }; @@ -54,6 +59,11 @@ r = (__m128 *)&z[0]; c1 = *(__m128 *)p1p1m1m1; c2 = *(__m128 *)p1p1p1m1; + if (s->inverse) + c2 = *(__m128 *)p1p1m1p1; + else + c2 = *(__m128 *)p1p1p1m1; + j = (np >> 2); do { a = r[0]; @@ -126,3 +136,5 @@ nloops = nloops << 1; } while (nblocks != 0); } + +#endif