1 --- fftw-3.0.1/simd/altivec.c.orig 2003-03-15 21:29:43.000000000 +0100
2 +++ fftw-3.0.1/simd/altivec.c 2005-05-25 20:55:26.000000000 +0200
6 const vector unsigned int X(altivec_ld_selmsk) =
7 - (vector unsigned int)VLIT(0, 0, 0xFFFFFFFF, 0xFFFFFFFF);
8 + (const vector unsigned int)VLIT(0, 0, 0xFFFFFFFF, 0xFFFFFFFF);
10 const vector unsigned int X(altivec_flipri_perm) =
11 - (vector unsigned int)VLIT(0x04050607, 0x00010203,
12 - 0x0c0d0e0f, 0x08090a0b);
13 + (const vector unsigned int)VLIT(0x04050607, 0x00010203, 0x0c0d0e0f, 0x08090a0b);
15 const vector float X(altivec_chsr_sgn) =
16 - (vector float)VLIT(-1.0, 1.0, -1.0, 1.0);
17 + (const vector float)VLIT(-1.0, 1.0, -1.0, 1.0);
18 const vector float X(altivec_chsr_msk) =
19 - (vector float)VLIT(-0.0, 0.0, -0.0, 0.0);
20 + (const vector float)VLIT(-0.0, 0.0, -0.0, 0.0);
23 --- fftw-3.0.1/simd/simd-altivec.h.orig 2003-03-21 13:45:48.000000000 +0100
24 +++ fftw-3.0.1/simd/simd-altivec.h 2005-05-25 20:57:22.000000000 +0200
26 return (vector float) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
29 -#define VLIT(x0, x1, x2, x3) {x0, x1, x2, x3}
33 -#define VLIT(x0, x1, x2, x3) (x0, x1, x2, x3)
34 +/* gcc provides altivec builtins */
39 +#define VLIT(x0, x1, x2, x3) {x0, x1, x2, x3}
41 typedef vector float V;
42 #define VADD(a, b) vec_add(a, b)
43 #define VSUB(a, b) vec_sub(a, b)