Revision 0d8837bd libavcodec/x86/lpc_mmx.c

View differences:

libavcodec/x86/lpc_mmx.c
20 20
 */
21 21

  
22 22
#include "libavutil/x86_cpu.h"
23
#include "dsputil_mmx.h"
23
#include "libavutil/cpu.h"
24
#include "libavcodec/lpc.h"
24 25

  
25 26
static void apply_welch_window_sse2(const int32_t *data, int len, double *w_data)
26 27
{
......
68 69
#undef WELCH
69 70
}
70 71

  
71
void ff_lpc_compute_autocorr_sse2(const int32_t *data, int len, int lag,
72
static void lpc_compute_autocorr_sse2(const int32_t *data, int len, int lag,
72 73
                                   double *autoc)
73 74
{
74 75
    double tmp[len + lag + 2];
......
141 142
        }
142 143
    }
143 144
}
145

  
146
av_cold void ff_lpc_init_x86(LPCContext *c)
147
{
148
    int mm_flags = av_get_cpu_flags();
149

  
150
    if (mm_flags & (AV_CPU_FLAG_SSE2|AV_CPU_FLAG_SSE2SLOW)) {
151
        c->lpc_compute_autocorr = lpc_compute_autocorr_sse2;
152
    }
153
}

Also available in: Unified diff