[SCM] libav/experimental: move the 0x80 vector outside of the function, thus saving the compiler the trouble of having to initialize each byte on the stack individually

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:40:12 UTC 2013


The following commit has been merged in the experimental branch:
commit 7daabccb5d36e9bf649d157ab14ccb2a016f1c53
Author: Mike Melanson <mike at multimedia.cx>
Date:   Tue Apr 27 04:06:24 2004 +0000

    move the 0x80 vector outside of the function, thus saving the compiler
    the trouble of having to initialize each byte on the stack individually
    
    Originally committed as revision 3083 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/i386/dsputil_mmx.c b/libavcodec/i386/dsputil_mmx.c
index d117b0c..c8db22e 100644
--- a/libavcodec/i386/dsputil_mmx.c
+++ b/libavcodec/i386/dsputil_mmx.c
@@ -294,11 +294,12 @@ void put_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size
 	    :"memory");
 }
 
+static unsigned char __align8 vector128[8] =
+  { 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80 };
+
 void put_signed_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size)
 {
     int i;
-    unsigned char __align8 vector128[8] =
-      { 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80 };
 
     movq_m2r(*vector128, mm1);
     for (i = 0; i < 8; i++) {

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list