diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2001-11-10 19:46:04 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2001-11-10 19:46:04 +0000 |
commit | 6e3bba728206686a005a9f83f6e4e1e2a6e3da72 (patch) | |
tree | ea1a23df71c037fb2c8b1c4fd3585a7c39656945 /postproc/rgb2rgb.c | |
parent | a822a47983068ea9ca721c5a3359734c79837195 (diff) | |
download | ffmpeg-6e3bba728206686a005a9f83f6e4e1e2a6e3da72.tar.gz |
.align 16
Originally committed as revision 2800 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc/rgb2rgb.c')
-rw-r--r-- | postproc/rgb2rgb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/postproc/rgb2rgb.c b/postproc/rgb2rgb.c index 4dc9857582..2232343883 100644 --- a/postproc/rgb2rgb.c +++ b/postproc/rgb2rgb.c @@ -585,6 +585,7 @@ void rgb32tobgr32(const uint8_t *src, uint8_t *dst, unsigned int src_size) #ifdef HAVE_MMX asm volatile ( "xorl %%eax, %%eax \n\t" + ".align 16 \n\t" "1: \n\t" PREFETCH" 32(%0, %%eax) \n\t" "movq (%0, %%eax), %%mm0 \n\t" @@ -635,6 +636,7 @@ void yv12toyuy2(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, u //FIXME handle 2 lines a once (fewer prefetch, reuse some chrom, but very likely limited by mem anyway) asm volatile( "xorl %%eax, %%eax \n\t" + ".align 16 \n\t" "1: \n\t" PREFETCH" 32(%1, %%eax, 2) \n\t" PREFETCH" 32(%2, %%eax) \n\t" @@ -708,6 +710,7 @@ void yuy2toyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, "xorl %%eax, %%eax \n\t" "pcmpeqw %%mm7, %%mm7 \n\t" "psrlw $8, %%mm7 \n\t" // FF,00,FF,00... + ".align 16 \n\t" "1: \n\t" PREFETCH" 64(%0, %%eax, 4) \n\t" "movq (%0, %%eax, 4), %%mm0 \n\t" // YUYV YUYV(0) @@ -757,6 +760,7 @@ void yuy2toyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, asm volatile( "xorl %%eax, %%eax \n\t" + ".align 16 \n\t" "1: \n\t" PREFETCH" 64(%0, %%eax, 4) \n\t" "movq (%0, %%eax, 4), %%mm0 \n\t" // YUYV YUYV(0) |