@@ -39,6 +39,7 @@
op(sum, (w)[7 * 64], (p)[7 * 64]); \
}
+#if HAVE_6REGS
static void apply_window(const float *buf, const float *win1,
const float *win2, float *sum1, float *sum2, int len)
{
@@ -146,12 +147,15 @@ static void apply_window_mp3(float *in, float *win, int *unused, float *out,
SUM8(MLSS, sum, win + 16 + 32, in + 32);
*out = sum;
}
+#endif
void ff_mpadsp_init_mmx(MPADSPContext *s)
{
int mm_flags = av_get_cpu_flags();
+#if HAVE_6REGS
if (mm_flags & AV_CPU_FLAG_SSE2) {
s->apply_window_float = apply_window_mp3;
}
+#endif
}