27 #define MACS(rt, ra, rb) rt+=(ra)*(rb)
28 #define MLSS(rt, ra, rb) rt-=(ra)*(rb)
30 #define SUM8(op, sum, w, p) \
32 op(sum, (w)[0 * 64], (p)[0 * 64]); \
33 op(sum, (w)[1 * 64], (p)[1 * 64]); \
34 op(sum, (w)[2 * 64], (p)[2 * 64]); \
35 op(sum, (w)[3 * 64], (p)[3 * 64]); \
36 op(sum, (w)[4 * 64], (p)[4 * 64]); \
37 op(sum, (w)[5 * 64], (p)[5 * 64]); \
38 op(sum, (w)[6 * 64], (p)[6 * 64]); \
39 op(sum, (w)[7 * 64], (p)[7 * 64]); \
43 const float *win2,
float *sum1,
float *sum2,
int len)
45 const vector
float *win1a = (
const vector
float *) win1;
46 const vector
float *win2a = (
const vector
float *) win2;
47 const vector
float *bufa = (
const vector
float *) buf;
48 vector
float *sum1a = (vector
float *) sum1;
49 vector
float *sum2a = (vector
float *) sum2;
51 vector
float v1, v2, v3;
57 v1 = vec_ld(a, win1a); \
58 v2 = vec_ld(b, win2a); \
59 v3 = vec_ld(a, bufa); \
60 v0 = vec_madd(v3, v1, v0); \
61 v4 = vec_madd(v2, v3, v4); \
97 float *out2 = out + 32 * incr;
100 memcpy(in + 512, in, 32 *
sizeof(*in));
103 apply_window(in + 32, win + 48, win + 640, sumb, sumd, 16);
105 SUM8(
MLSS, suma[0], win + 32, in + 48);
115 *out = suma[ j] - sumd[16-j];
116 *out2 = -sumb[16-j] - sumc[ j];
122 SUM8(
MLSS, sum, win + 16 + 32, in + 32);