diff i386/dsputil_mmx.c @ 1985:b2bc62fdecc0 libavcodec

move the 0x80 vector outside of the function, thus saving the compiler the trouble of having to initialize each byte on the stack individually
author melanson
date Tue, 27 Apr 2004 04:06:24 +0000
parents ef919e9ef73e
children f65d87bfdd5a
line wrap: on
line diff
--- a/i386/dsputil_mmx.c	Tue Apr 27 03:58:06 2004 +0000
+++ b/i386/dsputil_mmx.c	Tue Apr 27 04:06:24 2004 +0000
@@ -294,11 +294,12 @@
 	    :"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++) {