From db42e13bfbfdb2a9b909078870ef03e4cf7357b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Falk=20H=C3=BCffner?= Date: Mon, 24 Jun 2002 22:22:39 +0000 Subject: [PATCH] Ugly hack to make the assembler accept MVI instructions. Originally committed as revision 705 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/alpha/dsputil_alpha.c | 7 ++++++- libavcodec/alpha/mpegvideo_alpha.c | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/libavcodec/alpha/dsputil_alpha.c b/libavcodec/alpha/dsputil_alpha.c index 3a54904..06d2fda 100644 --- a/libavcodec/alpha/dsputil_alpha.c +++ b/libavcodec/alpha/dsputil_alpha.c @@ -26,6 +26,9 @@ static void put_pixels_clamped_axp(const DCTELEM *block, UINT8 *pixels, int line_size) { int i = 8; + + ASM_ACCEPT_MVI; + do { UINT64 shorts; @@ -48,6 +51,9 @@ static void add_pixels_clamped_axp(const DCTELEM *block, UINT8 *pixels, int line_size) { int i = 8; + + ASM_ACCEPT_MVI; + do { UINT64 shorts; @@ -216,7 +222,6 @@ void dsputil_init_alpha(void) /* amask clears all bits that correspond to present features. */ if (amask(AMASK_MVI) == 0) { - fprintf(stderr, "MVI extension detected\n"); put_pixels_clamped = put_pixels_clamped_axp; add_pixels_clamped = add_pixels_clamped_axp; } diff --git a/libavcodec/alpha/mpegvideo_alpha.c b/libavcodec/alpha/mpegvideo_alpha.c index d0af5e1..eb1997e 100644 --- a/libavcodec/alpha/mpegvideo_alpha.c +++ b/libavcodec/alpha/mpegvideo_alpha.c @@ -28,6 +28,9 @@ static void dct_unquantize_h263_axp(MpegEncContext *s, { int i, level; UINT64 qmul, qadd; + + ASM_ACCEPT_MVI; + if (s->mb_intra) { if (n < 4) block[0] = block[0] * s->y_dc_scale; -- 2.7.4