Commit 59969a6f authored by mellum's avatar mellum

Ugly hack to make the assembler accept MVI instructions.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@705 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1d3643f1
...@@ -26,6 +26,9 @@ static void put_pixels_clamped_axp(const DCTELEM *block, UINT8 *pixels, ...@@ -26,6 +26,9 @@ static void put_pixels_clamped_axp(const DCTELEM *block, UINT8 *pixels,
int line_size) int line_size)
{ {
int i = 8; int i = 8;
ASM_ACCEPT_MVI;
do { do {
UINT64 shorts; UINT64 shorts;
...@@ -48,6 +51,9 @@ static void add_pixels_clamped_axp(const DCTELEM *block, UINT8 *pixels, ...@@ -48,6 +51,9 @@ static void add_pixels_clamped_axp(const DCTELEM *block, UINT8 *pixels,
int line_size) int line_size)
{ {
int i = 8; int i = 8;
ASM_ACCEPT_MVI;
do { do {
UINT64 shorts; UINT64 shorts;
...@@ -216,7 +222,6 @@ void dsputil_init_alpha(void) ...@@ -216,7 +222,6 @@ void dsputil_init_alpha(void)
/* amask clears all bits that correspond to present features. */ /* amask clears all bits that correspond to present features. */
if (amask(AMASK_MVI) == 0) { if (amask(AMASK_MVI) == 0) {
fprintf(stderr, "MVI extension detected\n");
put_pixels_clamped = put_pixels_clamped_axp; put_pixels_clamped = put_pixels_clamped_axp;
add_pixels_clamped = add_pixels_clamped_axp; add_pixels_clamped = add_pixels_clamped_axp;
} }
......
...@@ -28,6 +28,9 @@ static void dct_unquantize_h263_axp(MpegEncContext *s, ...@@ -28,6 +28,9 @@ static void dct_unquantize_h263_axp(MpegEncContext *s,
{ {
int i, level; int i, level;
UINT64 qmul, qadd; UINT64 qmul, qadd;
ASM_ACCEPT_MVI;
if (s->mb_intra) { if (s->mb_intra) {
if (n < 4) if (n < 4)
block[0] = block[0] * s->y_dc_scale; block[0] = block[0] * s->y_dc_scale;
......
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