summaryrefslogtreecommitdiff
path: root/libavcodec/i386
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2004-04-27 04:06:24 +0000
committerMike Melanson <mike@multimedia.cx>2004-04-27 04:06:24 +0000
commit7daabccb5d36e9bf649d157ab14ccb2a016f1c53 (patch)
tree260f6b9dda6d0f75f16096a407fedbe1c17fe7a3 /libavcodec/i386
parentf9ed9d8584d762142cf5e579b38bfe649cc5c8e8 (diff)
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
Diffstat (limited to 'libavcodec/i386')
-rw-r--r--libavcodec/i386/dsputil_mmx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/i386/dsputil_mmx.c b/libavcodec/i386/dsputil_mmx.c
index d117b0ca86..c8db22e648 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++) {