aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2001-07-24 20:38:55 +0000
committerFabrice Bellard <fabrice@bellard.org>2001-07-24 20:38:55 +0000
commit7d650cb540b68ceba96abbe3be196473df8e3c5d (patch)
treef88f70221fb6f2dedd4e89d11e8afc235cec873c
parenta9e3707d6bcaa21754c50625cac9bfa212686b12 (diff)
downloadffmpeg-7d650cb540b68ceba96abbe3be196473df8e3c5d.tar.gz
suppressed no longer needed emms()
Originally committed as revision 11 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/i386/dsputil_mmx.c24
-rw-r--r--libavcodec/i386/dsputil_mmx_avg.h8
2 files changed, 2 insertions, 30 deletions
diff --git a/libavcodec/i386/dsputil_mmx.c b/libavcodec/i386/dsputil_mmx.c
index 701b70283d..18cb03e0e8 100644
--- a/libavcodec/i386/dsputil_mmx.c
+++ b/libavcodec/i386/dsputil_mmx.c
@@ -21,6 +21,8 @@
#include "../dsputil.h"
+int mm_flags; /* multimedia extension flags */
+
int pix_abs16x16_mmx(UINT8 *blk1, UINT8 *blk2, int lx, int h);
int pix_abs16x16_sse(UINT8 *blk1, UINT8 *blk2, int lx, int h);
int pix_abs16x16_x2_mmx(UINT8 *blk1, UINT8 *blk2, int lx, int h);
@@ -89,7 +91,6 @@ static void get_pixels_mmx(DCTELEM *block, const UINT8 *pixels, int line_size)
pix += line_size*2;
p += 16;
}
- emms();
}
static void put_pixels_clamped_mmx(const DCTELEM *block, UINT8 *pixels, int line_size)
@@ -126,7 +127,6 @@ static void put_pixels_clamped_mmx(const DCTELEM *block, UINT8 *pixels, int line
pix += line_size*4;
p += 32;
}
- emms();
}
static void add_pixels_clamped_mmx(const DCTELEM *block, UINT8 *pixels, int line_size)
@@ -167,7 +167,6 @@ static void add_pixels_clamped_mmx(const DCTELEM *block, UINT8 *pixels, int line
pix += line_size*2;
p += 16;
}
- emms();
}
static void put_pixels_mmx(UINT8 *block, const UINT8 *pixels, int line_size, int h)
@@ -205,7 +204,6 @@ static void put_pixels_mmx(UINT8 *block, const UINT8 *pixels, int line_size, int
pix = pix + line_size;
p = p + line_size;
}
- emms();
}
static void put_pixels_x2_mmx(UINT8 *block, const UINT8 *pixels, int line_size, int h)
@@ -241,7 +239,6 @@ static void put_pixels_x2_mmx(UINT8 *block, const UINT8 *pixels, int line_size,
:"memory");
pix += line_size; p += line_size;
} while (--h);
- emms();
}
static void put_pixels_y2_mmx(UINT8 *block, const UINT8 *pixels, int line_size, int h)
@@ -279,7 +276,6 @@ static void put_pixels_y2_mmx(UINT8 *block, const UINT8 *pixels, int line_size,
pix += line_size;
p += line_size;
} while (--h);
- emms();
}
static void put_pixels_xy2_mmx(UINT8 *block, const UINT8 *pixels, int line_size, int h)
@@ -329,7 +325,6 @@ static void put_pixels_xy2_mmx(UINT8 *block, const UINT8 *pixels, int line_size,
pix += line_size;
p += line_size;
} while(--h);
- emms();
}
static void put_no_rnd_pixels_x2_mmx( UINT8 *block, const UINT8 *pixels, int line_size, int h)
@@ -361,7 +356,6 @@ static void put_no_rnd_pixels_x2_mmx( UINT8 *block, const UINT8 *pixels, int
pix += line_size;
p += line_size;
} while (--h);
- emms();
}
static void put_no_rnd_pixels_y2_mmx( UINT8 *block, const UINT8 *pixels, int line_size, int h)
@@ -394,7 +388,6 @@ static void put_no_rnd_pixels_y2_mmx( UINT8 *block, const UINT8 *pixels, int li
pix += line_size;
p += line_size;
} while(--h);
- emms();
}
static void put_no_rnd_pixels_xy2_mmx( UINT8 *block, const UINT8 *pixels, int line_size, int h)
@@ -444,7 +437,6 @@ static void put_no_rnd_pixels_xy2_mmx( UINT8 *block, const UINT8 *pixels, int
pix += line_size;
p += line_size;
} while(--h);
- emms();
}
static void avg_pixels_mmx(UINT8 *block, const UINT8 *pixels, int line_size, int h)
@@ -482,7 +474,6 @@ static void avg_pixels_mmx(UINT8 *block, const UINT8 *pixels, int line_size, int
p += line_size;
}
while (--h);
- emms();
}
static void avg_pixels_x2_mmx( UINT8 *block, const UINT8 *pixels, int line_size, int h)
@@ -529,7 +520,6 @@ static void avg_pixels_x2_mmx( UINT8 *block, const UINT8 *pixels, int line_si
pix += line_size;
p += line_size;
} while (--h);
- emms();
}
static void avg_pixels_y2_mmx( UINT8 *block, const UINT8 *pixels, int line_size, int h)
@@ -576,7 +566,6 @@ static void avg_pixels_y2_mmx( UINT8 *block, const UINT8 *pixels, int line_si
pix += line_size;
p += line_size ;
} while(--h);
- emms();
}
static void avg_pixels_xy2_mmx( UINT8 *block, const UINT8 *pixels, int line_size, int h)
@@ -637,7 +626,6 @@ static void avg_pixels_xy2_mmx( UINT8 *block, const UINT8 *pixels, int line_s
pix += line_size;
p += line_size ;
} while(--h);
- emms();
}
static void avg_no_rnd_pixels_mmx( UINT8 *block, const UINT8 *pixels, int line_size, int h)
@@ -669,7 +657,6 @@ static void avg_no_rnd_pixels_mmx( UINT8 *block, const UINT8 *pixels, int line_
pix += line_size;
p += line_size ;
} while (--h);
- emms();
}
static void avg_no_rnd_pixels_x2_mmx( UINT8 *block, const UINT8 *pixels, int line_size, int h)
@@ -710,7 +697,6 @@ static void avg_no_rnd_pixels_x2_mmx( UINT8 *block, const UINT8 *pixels, int
pix += line_size;
p += line_size;
} while (--h);
- emms();
}
static void avg_no_rnd_pixels_y2_mmx( UINT8 *block, const UINT8 *pixels, int line_size, int h)
@@ -751,7 +737,6 @@ static void avg_no_rnd_pixels_y2_mmx( UINT8 *block, const UINT8 *pixels, int
pix += line_size;
p += line_size ;
} while(--h);
- emms();
}
static void avg_no_rnd_pixels_xy2_mmx( UINT8 *block, const UINT8 *pixels, int line_size, int h)
@@ -809,7 +794,6 @@ static void avg_no_rnd_pixels_xy2_mmx( UINT8 *block, const UINT8 *pixels, int
pix += line_size;
p += line_size;
} while(--h);
- emms();
}
static void sub_pixels_mmx( DCTELEM *block, const UINT8 *pixels, int line_size, int h)
@@ -837,7 +821,6 @@ static void sub_pixels_mmx( DCTELEM *block, const UINT8 *pixels, int line_size,
pix += line_size;
p += 8;
} while (--h);
- emms();
}
static void sub_pixels_x2_mmx( DCTELEM *block, const UINT8 *pixels, int line_size, int h)
@@ -878,7 +861,6 @@ static void sub_pixels_x2_mmx( DCTELEM *block, const UINT8 *pixels, int line_si
pix += line_size;
p += 8;
} while (--h);
- emms();
}
static void sub_pixels_y2_mmx( DCTELEM *block, const UINT8 *pixels, int line_size, int h)
@@ -919,7 +901,6 @@ static void sub_pixels_y2_mmx( DCTELEM *block, const UINT8 *pixels, int line_si
pix += line_size;
p += 8;
} while (--h);
- emms();
}
static void sub_pixels_xy2_mmx( DCTELEM *block, const UINT8 *pixels, int line_size, int h)
@@ -973,7 +954,6 @@ static void sub_pixels_xy2_mmx( DCTELEM *block, const UINT8 *pixels, int line
pix += line_size;
p += 8 ;
} while(--h);
- emms();
}
void dsputil_init_mmx(void)
diff --git a/libavcodec/i386/dsputil_mmx_avg.h b/libavcodec/i386/dsputil_mmx_avg.h
index e47b83f62d..99e806a714 100644
--- a/libavcodec/i386/dsputil_mmx_avg.h
+++ b/libavcodec/i386/dsputil_mmx_avg.h
@@ -62,7 +62,6 @@ static void DEF(put_pixels_x2)(UINT8 *block, const UINT8 *pixels, int line_size,
:"memory");
pix += line_size; p += line_size;
}
- emms();
}
static void DEF(put_pixels_y2)(UINT8 *block, const UINT8 *pixels, int line_size, int h)
@@ -102,7 +101,6 @@ static void DEF(put_pixels_y2)(UINT8 *block, const UINT8 *pixels, int line_size,
"m"(*(pix+line_size))
:"memory");
}
- emms();
}
static void DEF(avg_pixels)(UINT8 *block, const UINT8 *pixels, int line_size, int h)
@@ -148,7 +146,6 @@ static void DEF(avg_pixels)(UINT8 *block, const UINT8 *pixels, int line_size, in
:"memory");
pix += line_size; p += line_size;
}
- emms();
}
static void DEF(avg_pixels_x2)( UINT8 *block, const UINT8 *pixels, int line_size, int h)
@@ -192,7 +189,6 @@ static void DEF(avg_pixels_x2)( UINT8 *block, const UINT8 *pixels, int line_siz
:"m"(*pix)
:"memory");
}
- emms();
}
static void DEF(avg_pixels_y2)( UINT8 *block, const UINT8 *pixels, int line_size, int h)
@@ -236,7 +232,6 @@ static void DEF(avg_pixels_y2)( UINT8 *block, const UINT8 *pixels, int line_si
:"m"(*pix), "m"(*(pix+line_size))
:"memory");
}
- emms();
}
static void DEF(avg_pixels_xy2)( UINT8 *block, const UINT8 *pixels, int line_size, int h)
@@ -287,7 +282,6 @@ static void DEF(avg_pixels_xy2)( UINT8 *block, const UINT8 *pixels, int line_si
pix += line_size;
p += line_size ;
} while(--h);
- emms();
}
static void DEF(sub_pixels_x2)( DCTELEM *block, const UINT8 *pixels, int line_size, int h)
@@ -317,7 +311,6 @@ static void DEF(sub_pixels_x2)( DCTELEM *block, const UINT8 *pixels, int line_s
pix += line_size;
p += 8;
} while (--h);
- emms();
}
static void DEF(sub_pixels_y2)( DCTELEM *block, const UINT8 *pixels, int line_size, int h)
@@ -347,6 +340,5 @@ static void DEF(sub_pixels_y2)( DCTELEM *block, const UINT8 *pixels, int line_s
pix += line_size;
p += 8;
} while (--h);
- emms();
}