Revision 513fbd8e libavcodec/i386/dsputil_mmx.c

View differences:

libavcodec/i386/dsputil_mmx.c
2489 2489
    }
2490 2490
}
2491 2491

  
2492
#define PREFETCH(name, op) \
2493
void name(void *mem, int stride, int h){\
2494
    const uint8_t *p= mem;\
2495
    do{\
2496
        asm volatile(#op" %0" :: "m"(*p));\
2497
        p+= stride;\
2498
    }while(--h);\
2499
}
2500
PREFETCH(prefetch_mmx2,  prefetcht0)
2501
PREFETCH(prefetch_3dnow, prefetch)
2502
#undef PREFETCH
2503

  
2492 2504
#include "h264dsp_mmx.c"
2493 2505

  
2494 2506
/* external functions, from idct_mmx.c */
......
2749 2761
        c->h264_idct8_add= ff_h264_idct8_add_mmx;
2750 2762

  
2751 2763
        if (mm_flags & MM_MMXEXT) {
2764
            c->prefetch = prefetch_mmx2;
2765

  
2752 2766
            c->put_pixels_tab[0][1] = put_pixels16_x2_mmx2;
2753 2767
            c->put_pixels_tab[0][2] = put_pixels16_y2_mmx2;
2754 2768

  
......
2879 2893
            c->sub_hfyu_median_prediction= sub_hfyu_median_prediction_mmx2;
2880 2894
#endif //CONFIG_ENCODERS
2881 2895
        } else if (mm_flags & MM_3DNOW) {
2896
            c->prefetch = prefetch_3dnow;
2897

  
2882 2898
            c->put_pixels_tab[0][1] = put_pixels16_x2_3dnow;
2883 2899
            c->put_pixels_tab[0][2] = put_pixels16_y2_3dnow;
2884 2900

  

Also available in: Unified diff