void ff_pngdsp_init_x86(PNGDSPContext *dsp)

{

#if HAVE_YASM

    int flags = av_get_cpu_flags();



#if ARCH_X86_32

    if (flags & AV_CPU_FLAG_MMX)

        dsp->add_bytes_l2         = ff_add_bytes_l2_mmx;

#endif

    if (flags & AV_CPU_FLAG_MMXEXT)

        dsp->add_paeth_prediction = ff_add_png_paeth_prediction_mmx2;

    if (flags & AV_CPU_FLAG_SSE2)

        dsp->add_bytes_l2         = ff_add_bytes_l2_sse2;

    if (flags & AV_CPU_FLAG_SSSE3)

        dsp->add_paeth_prediction = ff_add_png_paeth_prediction_ssse3;

#endif

}

void ff_pngdsp_init_x86(PNGDSPContext *dsp)

{

#if HAVE_YASM

    int flags = av_get_cpu_flags();



#if ARCH_X86_32

    if (flags & AV_CPU_FLAG_MMX)

        dsp->add_bytes_l2         = ff_add_bytes_l2_mmx;

#endif

    if (flags & AV_CPU_FLAG_MMXEXT)

        dsp->add_paeth_prediction = ff_add_png_paeth_prediction_mmx2;

    if (flags & AV_CPU_FLAG_SSE2)

        dsp->add_bytes_l2         = ff_add_bytes_l2_sse2;

    if (flags & AV_CPU_FLAG_SSSE3)

        dsp->add_paeth_prediction = ff_add_png_paeth_prediction_ssse3;

#endif

}

void FUNC_0(PNGDSPContext *VAR_0)

{

#if HAVE_YASM

    int flags = av_get_cpu_flags();



#if ARCH_X86_32

    if (flags & AV_CPU_FLAG_MMX)

        VAR_0->add_bytes_l2         = ff_add_bytes_l2_mmx;

#endif

    if (flags & AV_CPU_FLAG_MMXEXT)

        VAR_0->add_paeth_prediction = ff_add_png_paeth_prediction_mmx2;

    if (flags & AV_CPU_FLAG_SSE2)

        VAR_0->add_bytes_l2         = ff_add_bytes_l2_sse2;

    if (flags & AV_CPU_FLAG_SSSE3)

        VAR_0->add_paeth_prediction = ff_add_png_paeth_prediction_ssse3;

#endif

}

void FUNC_0(PNGDSPContext *VAR_0)
{ #if HAVE_YASM
int flags = av_get_cpu_flags(); #if ARCH_X86_32
if (flags & AV_CPU_FLAG_MMX)
VAR_0->add_bytes_l2         = ff_add_bytes_l2_mmx; #endif
if (flags & AV_CPU_FLAG_MMXEXT)
VAR_0->add_paeth_prediction = ff_add_png_paeth_prediction_mmx2; if (flags & AV_CPU_FLAG_SSE2)
VAR_0->add_bytes_l2         = ff_add_bytes_l2_sse2; if (flags & AV_CPU_FLAG_SSSE3)
VAR_0->add_paeth_prediction = ff_add_png_paeth_prediction_ssse3; #endif
}