Commit 0d0042c3 authored by melanson's avatar melanson

move the 0x80 vector outside of the function, thus saving the compiler

the trouble of having to initialize each byte on the stack individually


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3083 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 002519be
...@@ -294,11 +294,12 @@ void put_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size ...@@ -294,11 +294,12 @@ void put_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size
:"memory"); :"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) void put_signed_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size)
{ {
int i; int i;
unsigned char __align8 vector128[8] =
{ 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80 };
movq_m2r(*vector128, mm1); movq_m2r(*vector128, mm1);
for (i = 0; i < 8; i++) { for (i = 0; i < 8; i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment