Mercurial > libavcodec.hg
comparison imgconvert.c @ 8316:589f9a71df95 libavcodec
Get rid of mmx_t.
author | aurel |
---|---|
date | Sun, 14 Dec 2008 00:46:27 +0000 |
parents | 661cd381d996 |
children | e9db9859de6c |
comparison
equal
deleted
inserted
replaced
8315:7ccdcc976edd | 8316:589f9a71df95 |
---|---|
34 #include "dsputil.h" | 34 #include "dsputil.h" |
35 #include "colorspace.h" | 35 #include "colorspace.h" |
36 | 36 |
37 #ifdef HAVE_MMX | 37 #ifdef HAVE_MMX |
38 #include "i386/mmx.h" | 38 #include "i386/mmx.h" |
39 #include "i386/dsputil_mmx.h" | |
39 #endif | 40 #endif |
40 | 41 |
41 #define xglue(x, y) x ## y | 42 #define xglue(x, y) x ## y |
42 #define glue(x, y) xglue(x, y) | 43 #define glue(x, y) xglue(x, y) |
43 | 44 |
2731 dst++; | 2732 dst++; |
2732 } | 2733 } |
2733 #else | 2734 #else |
2734 | 2735 |
2735 { | 2736 { |
2736 mmx_t rounder; | |
2737 rounder.uw[0]=4; | |
2738 rounder.uw[1]=4; | |
2739 rounder.uw[2]=4; | |
2740 rounder.uw[3]=4; | |
2741 pxor_r2r(mm7,mm7); | 2737 pxor_r2r(mm7,mm7); |
2742 movq_m2r(rounder,mm6); | 2738 movq_m2r(ff_pw_4,mm6); |
2743 } | 2739 } |
2744 for (;size > 3; size-=4) { | 2740 for (;size > 3; size-=4) { |
2745 DEINT_LINE_LUM | 2741 DEINT_LINE_LUM |
2746 lum_m4+=4; | 2742 lum_m4+=4; |
2747 lum_m3+=4; | 2743 lum_m3+=4; |
2774 lum++; | 2770 lum++; |
2775 } | 2771 } |
2776 #else | 2772 #else |
2777 | 2773 |
2778 { | 2774 { |
2779 mmx_t rounder; | |
2780 rounder.uw[0]=4; | |
2781 rounder.uw[1]=4; | |
2782 rounder.uw[2]=4; | |
2783 rounder.uw[3]=4; | |
2784 pxor_r2r(mm7,mm7); | 2775 pxor_r2r(mm7,mm7); |
2785 movq_m2r(rounder,mm6); | 2776 movq_m2r(ff_pw_4,mm6); |
2786 } | 2777 } |
2787 for (;size > 3; size-=4) { | 2778 for (;size > 3; size-=4) { |
2788 DEINT_INPLACE_LINE_LUM | 2779 DEINT_INPLACE_LINE_LUM |
2789 lum_m4+=4; | 2780 lum_m4+=4; |
2790 lum_m3+=4; | 2781 lum_m3+=4; |