summaryrefslogtreecommitdiff
path: root/multimedia/libmpeg3/patches/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/libmpeg3/patches/patch-af')
-rw-r--r--multimedia/libmpeg3/patches/patch-af27
1 files changed, 22 insertions, 5 deletions
diff --git a/multimedia/libmpeg3/patches/patch-af b/multimedia/libmpeg3/patches/patch-af
index e890d31e5a9..f05ba1cd9f7 100644
--- a/multimedia/libmpeg3/patches/patch-af
+++ b/multimedia/libmpeg3/patches/patch-af
@@ -1,8 +1,25 @@
-$NetBSD: patch-af,v 1.1 2004/06/26 18:00:21 grant Exp $
+$NetBSD: patch-af,v 1.2 2006/08/09 17:55:51 mrg Exp $
---- video/reconstruct.c.orig Tue Jul 31 17:23:42 2001
-+++ video/reconstruct.c Tue Jul 31 17:24:52 2001
-@@ -572,7 +572,7 @@
+--- video/reconstruct.c.orig 2001-05-19 20:05:26.000000000 -0700
++++ video/reconstruct.c 2006-08-09 10:43:50.000000000 -0700
+@@ -270,8 +270,14 @@
+ }
+
+ #else // HAVE_3DNOW
+- static long long ADD_1 = 0x0101010101010101LL;
+- static long long MASK_AND = 0x7f7f7f7f7f7f7f7fLL;
++#if defined(__GNUC__) && __GNUC__ > 3
++#define LMUSED __attribute__((__used__))
++#else
++#define LMUSED
++#endif
++
++ static long long ADD_1 LMUSED = 0x0101010101010101LL;
++ static long long MASK_AND LMUSED = 0x7f7f7f7f7f7f7f7fLL;
+ #endif
+
+ static inline void rec_mmx(unsigned char *s, unsigned char *d, int lx2, int h)
+@@ -572,7 +578,7 @@
}
}
@@ -11,7 +28,7 @@ $NetBSD: patch-af,v 1.1 2004/06/26 18:00:21 grant Exp $
{
unsigned char *dp,*sp,*sp2;
int j;
-@@ -971,7 +971,7 @@
+@@ -971,7 +977,7 @@
case 0x0: recc(s, d, lx2, h); break;
case 0x7: recva(s, d, lx, lx2, h); break;
case 0x6: recvac(s, d, lx, lx2, h); break;