Revision fbb6b49d libavcodec/x86/ac3dsp_mmx.c

View differences:

libavcodec/x86/ac3dsp_mmx.c
27 27
extern void ff_ac3_exponent_min_mmxext(uint8_t *exp, int num_reuse_blocks, int nb_coefs);
28 28
extern void ff_ac3_exponent_min_sse2  (uint8_t *exp, int num_reuse_blocks, int nb_coefs);
29 29

  
30
extern int ff_ac3_max_msb_abs_int16_mmx   (const int16_t *src, int len);
31
extern int ff_ac3_max_msb_abs_int16_mmxext(const int16_t *src, int len);
32
extern int ff_ac3_max_msb_abs_int16_sse2  (const int16_t *src, int len);
33
extern int ff_ac3_max_msb_abs_int16_ssse3 (const int16_t *src, int len);
34

  
30 35
av_cold void ff_ac3dsp_init_x86(AC3DSPContext *c)
31 36
{
32 37
    int mm_flags = av_get_cpu_flags();
......
34 39
#if HAVE_YASM
35 40
    if (mm_flags & AV_CPU_FLAG_MMX) {
36 41
        c->ac3_exponent_min = ff_ac3_exponent_min_mmx;
42
        c->ac3_max_msb_abs_int16 = ff_ac3_max_msb_abs_int16_mmx;
37 43
    }
38 44
    if (mm_flags & AV_CPU_FLAG_MMX2 && HAVE_MMX2) {
39 45
        c->ac3_exponent_min = ff_ac3_exponent_min_mmxext;
46
        c->ac3_max_msb_abs_int16 = ff_ac3_max_msb_abs_int16_mmxext;
40 47
    }
41 48
    if (mm_flags & AV_CPU_FLAG_SSE2 && HAVE_SSE) {
42 49
        c->ac3_exponent_min = ff_ac3_exponent_min_sse2;
50
        c->ac3_max_msb_abs_int16 = ff_ac3_max_msb_abs_int16_sse2;
51
    }
52
    if (mm_flags & AV_CPU_FLAG_SSSE3 && HAVE_SSSE3) {
53
        c->ac3_max_msb_abs_int16 = ff_ac3_max_msb_abs_int16_ssse3;
43 54
    }
44 55
#endif
45 56
}

Also available in: Unified diff