avg_pixels_tab[0] = avg_pixels_3dnow; avg_pixels_tab[1] = avg_pixels_x2_3dnow; avg_pixels_tab[2] = avg_pixels_y2_3dnow; avg_pixels_tab[3] = avg_pixels_xy2_3dnow;
avg_pixels_tab[0][0] = avg_pixels16_3dnow; avg_pixels_tab[0][1] = avg_pixels16_x2_3dnow; avg_pixels_tab[0][2] = avg_pixels16_y2_3dnow; avg_pixels_tab[0][3] = avg_pixels16_xy2_3dnow;  put_pixels_tab[1][1] = put_pixels8_x2_3dnow; put_pixels_tab[1][2] = put_pixels8_y2_3dnow; put_no_rnd_pixels_tab[1][1] = put_no_rnd_pixels8_x2_3dnow; put_no_rnd_pixels_tab[1][2] = put_no_rnd_pixels8_y2_3dnow;  avg_pixels_tab[1][0] = avg_pixels8_3dnow; avg_pixels_tab[1][1] = avg_pixels8_x2_3dnow; avg_pixels_tab[1][2] = avg_pixels8_y2_3dnow; avg_pixels_tab[1][3] = avg_pixels8_xy2_3dnow;
void dsputil_init_mmx(void){    mm_flags = mm_support();#if 0    fprintf(stderr, "libavcodec: CPU flags:");    if (mm_flags & MM_MMX)        fprintf(stderr, " mmx");    if (mm_flags & MM_MMXEXT)        fprintf(stderr, " mmxext");    if (mm_flags & MM_3DNOW)        fprintf(stderr, " 3dnow");    if (mm_flags & MM_SSE)        fprintf(stderr, " sse");    if (mm_flags & MM_SSE2)        fprintf(stderr, " sse2");    fprintf(stderr, "\n");#endif    if (mm_flags & MM_MMX) {        get_pixels = get_pixels_mmx;        diff_pixels = diff_pixels_mmx;        put_pixels_clamped = put_pixels_clamped_mmx;        add_pixels_clamped = add_pixels_clamped_mmx;        clear_blocks= clear_blocks_mmx;        pix_abs16x16     = pix_abs16x16_mmx;        pix_abs16x16_x2  = pix_abs16x16_x2_mmx;        pix_abs16x16_y2  = pix_abs16x16_y2_mmx;        pix_abs16x16_xy2 = pix_abs16x16_xy2_mmx;        pix_abs8x8    = pix_abs8x8_mmx;        pix_abs8x8_x2 = pix_abs8x8_x2_mmx;        pix_abs8x8_y2 = pix_abs8x8_y2_mmx;        pix_abs8x8_xy2= pix_abs8x8_xy2_mmx;        put_pixels_tab[0] = put_pixels_mmx;        put_pixels_tab[1] = put_pixels_x2_mmx;        put_pixels_tab[2] = put_pixels_y2_mmx;        put_pixels_tab[3] = put_pixels_xy2_mmx;        put_no_rnd_pixels_tab[0] = put_pixels_mmx;        put_no_rnd_pixels_tab[1] = put_no_rnd_pixels_x2_mmx;        put_no_rnd_pixels_tab[2] = put_no_rnd_pixels_y2_mmx;        put_no_rnd_pixels_tab[3] = put_no_rnd_pixels_xy2_mmx;        avg_pixels_tab[0] = avg_pixels_mmx;        avg_pixels_tab[1] = avg_pixels_x2_mmx;        avg_pixels_tab[2] = avg_pixels_y2_mmx;        avg_pixels_tab[3] = avg_pixels_xy2_mmx;        avg_no_rnd_pixels_tab[0] = avg_no_rnd_pixels_mmx;        avg_no_rnd_pixels_tab[1] = avg_no_rnd_pixels_x2_mmx;        avg_no_rnd_pixels_tab[2] = avg_no_rnd_pixels_y2_mmx;        avg_no_rnd_pixels_tab[3] = avg_no_rnd_pixels_xy2_mmx;        if (mm_flags & MM_MMXEXT) {            pix_abs16x16    = pix_abs16x16_mmx2;            pix_abs16x16_x2 = pix_abs16x16_x2_mmx2;            pix_abs16x16_y2 = pix_abs16x16_y2_mmx2;            pix_abs16x16_xy2= pix_abs16x16_xy2_mmx2;            pix_abs8x8    = pix_abs8x8_mmx2;            pix_abs8x8_x2 = pix_abs8x8_x2_mmx2;            pix_abs8x8_y2 = pix_abs8x8_y2_mmx2;            pix_abs8x8_xy2= pix_abs8x8_xy2_mmx2;            put_pixels_tab[1] = put_pixels_x2_mmx2;            put_pixels_tab[2] = put_pixels_y2_mmx2;            put_no_rnd_pixels_tab[1] = put_no_rnd_pixels_x2_mmx2;            put_no_rnd_pixels_tab[2] = put_no_rnd_pixels_y2_mmx2;            avg_pixels_tab[0] = avg_pixels_mmx2;            avg_pixels_tab[1] = avg_pixels_x2_mmx2;            avg_pixels_tab[2] = avg_pixels_y2_mmx2;            avg_pixels_tab[3] = avg_pixels_xy2_mmx2;        } else if (mm_flags & MM_3DNOW) {            put_pixels_tab[1] = put_pixels_x2_3dnow;            put_pixels_tab[2] = put_pixels_y2_3dnow;            put_no_rnd_pixels_tab[1] = put_no_rnd_pixels_x2_3dnow;            put_no_rnd_pixels_tab[2] = put_no_rnd_pixels_y2_3dnow;            avg_pixels_tab[0] = avg_pixels_3dnow;            avg_pixels_tab[1] = avg_pixels_x2_3dnow;            avg_pixels_tab[2] = avg_pixels_y2_3dnow;            avg_pixels_tab[3] = avg_pixels_xy2_3dnow;        }        /* idct */        if (mm_flags & MM_MMXEXT) {            ff_idct = ff_mmxext_idct;        } else {            ff_idct = ff_mmx_idct;        }#ifdef SIMPLE_IDCT//	ff_idct = simple_idct;	ff_idct = simple_idct_mmx;#endif    }#if 0    // for speed testing    get_pixels = just_return;    put_pixels_clamped = just_return;    add_pixels_clamped = just_return;    pix_abs16x16 = just_return;    pix_abs16x16_x2 = just_return;    pix_abs16x16_y2 = just_return;    pix_abs16x16_xy2 = just_return;    put_pixels_tab[0] = just_return;    put_pixels_tab[1] = just_return;    put_pixels_tab[2] = just_return;    put_pixels_tab[3] = just_return;    put_no_rnd_pixels_tab[0] = just_return;    put_no_rnd_pixels_tab[1] = just_return;    put_no_rnd_pixels_tab[2] = just_return;    put_no_rnd_pixels_tab[3] = just_return;    avg_pixels_tab[0] = just_return;    avg_pixels_tab[1] = just_return;    avg_pixels_tab[2] = just_return;    avg_pixels_tab[3] = just_return;    avg_no_rnd_pixels_tab[0] = just_return;    avg_no_rnd_pixels_tab[1] = just_return;    avg_no_rnd_pixels_tab[2] = just_return;    avg_no_rnd_pixels_tab[3] = just_return;    //av_fdct = just_return;    //ff_idct = just_return;#endif}