quieten some gcc3.3 asm warnings

This commit is contained in:
mrg 2003-08-02 16:42:44 +00:00
parent 6e806328c3
commit 511e8c6c51
2 changed files with 49 additions and 1 deletions

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.2 2003/08/02 05:22:57 mrg Exp $
$NetBSD: distinfo,v 1.3 2003/08/02 16:42:44 mrg Exp $
SHA1 (mjpegtools-1.6.1.tar.gz) = af3705a1ef92c9ccd3e2d6db6c6b50e33f18b838
Size (mjpegtools-1.6.1.tar.gz) = 976241 bytes
@ -7,3 +7,4 @@ SHA1 (patch-ab) = 3bbb6d45e3999db47c4dc853c2d2ad609a0fdda3
SHA1 (patch-ac) = f900d8efe93d0e6c873533804495d3213427ddbb
SHA1 (patch-ad) = 6c6c53bacb76185019c72b72ce65977f5c1ec49e
SHA1 (patch-ae) = 077a87101a5c0fd7ddd8ba037d4769e30ff379b6
SHA1 (patch-af) = 5409fabee90a9f907652d0950aab96b966ed94cc

View file

@ -0,0 +1,47 @@
$NetBSD: patch-af,v 1.1 2003/08/02 16:42:45 mrg Exp $
--- yuvdenoise/motion.c.orig 2002-09-12 06:13:03.000000000 +1000
+++ yuvdenoise/motion.c 2003-08-03 02:17:04.000000000 +1000
@@ -244,6 +244,7 @@
calc_SAD_uv_mmx (uint8_t * frm, uint8_t * ref)
{
static uint16_t a[4];
+ int32_t w = denoiser.frame.w/2;
#ifdef HAVE_ASM_MMX
__asm__ __volatile__
@@ -273,7 +274,7 @@
" /* */\n"
" movq %%mm0 , %0 ; /* make mm0 available to gcc ... */\n"
:"=m" (a)
- :"m" (frm), "m" (ref), "m" (denoiser.frame.w/2)
+ :"m" (frm), "m" (ref), "m" (w)
:"%eax", "%ebx", "%ecx"
);
#endif
@@ -290,6 +291,7 @@
calc_SAD_uv_mmxe (uint8_t * frm, uint8_t * ref)
{
static uint32_t a;
+ int32_t w = denoiser.frame.w/2;
#ifdef HAVE_ASM_MMX
__asm__ __volatile__
@@ -310,7 +312,7 @@
" /* */\n"
" movq %%mm0 , %0 ; /* make mm0 available to gcc ... */\n"
:"=m" (a)
- :"m" (frm), "m" (ref), "m" (denoiser.frame.w/2)
+ :"m" (frm), "m" (ref), "m" (w)
:"%eax", "%ebx", "%ecx"
);
#endif
@@ -383,7 +385,7 @@
" /* */"
" movq %%mm0 , %0 ; /* make mm0 available to gcc ... */"
:"=m" (a)
- :"m" (frm1),"m" (frm2), "m" (ref), "m" (denoiser.frame.w), "m" (bit_mask)
+ :"m" (frm1),"m" (frm2), "m" (ref), "m" (denoiser.frame.w), "m" (bit_mask[0])
:"%eax", "%ebx", "%ecx", "%edx"
);
#endif