All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gregor Jasny <jasny@vidsoft.de>
To: thierry.merle@free.fr
Cc: video4linux-list@redhat.com, v4l2-library@linuxtv.org
Subject: PATCH: libv4l-fix-idct-inline-assembly.diff
Date: Fri, 4 Jul 2008 16:40:37 +0200	[thread overview]
Message-ID: <20080704144036.GJ18818@vidsoft.de> (raw)

Hi,

This patch fixes the input constraint for the sar instruction. It allows only an
immediate or cl as shift width.

Thanks,
Gregor

Signed-off-by: Gregor Jasny <jasny@vidsoft.de>

diff -r 61deeffda900 v4l2-apps/lib/libv4l/libv4lconvert/jidctflt.c
--- a/v4l2-apps/lib/libv4l/libv4lconvert/jidctflt.c	Fri Jul 04 07:21:55 2008 +0200
+++ b/v4l2-apps/lib/libv4l/libv4lconvert/jidctflt.c	Fri Jul 04 16:24:33 2008 +0200
@@ -92,7 +92,7 @@ static inline unsigned char descale_and_
       "\tcmpl %4,%1\n"
       "\tcmovg %4,%1\n"
       : "=r"(x)
-      : "0"(x), "Ir"(shift), "ir"(1UL<<(shift-1)), "r" (0xff), "r" (0)
+      : "0"(x), "Ic"((unsigned char)shift), "ir"(1UL<<(shift-1)), "r" (0xff), "r" (0)
       );
   return x;
 }

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

             reply	other threads:[~2008-07-04 14:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-04 14:40 Gregor Jasny [this message]
2008-07-04 15:07 ` PATCH: libv4l-fix-idct-inline-assembly.diff Hans de Goede
2008-07-04 17:35 ` Thierry Merle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080704144036.GJ18818@vidsoft.de \
    --to=jasny@vidsoft.de \
    --cc=thierry.merle@free.fr \
    --cc=v4l2-library@linuxtv.org \
    --cc=video4linux-list@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.