changeset 505:7a976bf93394 libavcodec

Ugly hack to make the assembler accept MVI instructions.
author mellum
date Mon, 24 Jun 2002 22:22:39 +0000
parents 4aa1ff2acc74
children b9ed0ae72d51
files alpha/dsputil_alpha.c alpha/mpegvideo_alpha.c
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/alpha/dsputil_alpha.c	Mon Jun 24 22:21:30 2002 +0000
+++ b/alpha/dsputil_alpha.c	Mon Jun 24 22:22:39 2002 +0000
@@ -26,6 +26,9 @@
 				   int line_size)
 {
     int i = 8;
+
+    ASM_ACCEPT_MVI;
+
     do {
 	UINT64 shorts;
 
@@ -48,6 +51,9 @@
 				   int line_size)
 {
     int i = 8;
+
+    ASM_ACCEPT_MVI;
+
     do {
 	UINT64 shorts; 
 
@@ -216,7 +222,6 @@
 
     /* 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;
     }
--- a/alpha/mpegvideo_alpha.c	Mon Jun 24 22:21:30 2002 +0000
+++ b/alpha/mpegvideo_alpha.c	Mon Jun 24 22:22:39 2002 +0000
@@ -28,6 +28,9 @@
 {
     int i, level;
     UINT64 qmul, qadd;
+
+    ASM_ACCEPT_MVI;
+    
     if (s->mb_intra) {
         if (n < 4) 
             block[0] = block[0] * s->y_dc_scale;