* PATCH: libv4l-fix-idct-inline-assembly.diff
@ 2008-07-04 14:40 Gregor Jasny
2008-07-04 15:07 ` Hans de Goede
2008-07-04 17:35 ` Thierry Merle
0 siblings, 2 replies; 3+ messages in thread
From: Gregor Jasny @ 2008-07-04 14:40 UTC (permalink / raw)
To: thierry.merle; +Cc: video4linux-list, v4l2-library
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
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: PATCH: libv4l-fix-idct-inline-assembly.diff
2008-07-04 14:40 PATCH: libv4l-fix-idct-inline-assembly.diff Gregor Jasny
@ 2008-07-04 15:07 ` Hans de Goede
2008-07-04 17:35 ` Thierry Merle
1 sibling, 0 replies; 3+ messages in thread
From: Hans de Goede @ 2008-07-04 15:07 UTC (permalink / raw)
To: Gregor Jasny; +Cc: video4linux-list, v4l2-library
Hi,
I was just about to send the same patch :)
Note that this is already incorperated into the libv4l-0.3.2 tarbal release
which I'm about to announce.
Regards,
Hans
Gregor Jasny wrote:
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PATCH: libv4l-fix-idct-inline-assembly.diff
2008-07-04 14:40 PATCH: libv4l-fix-idct-inline-assembly.diff Gregor Jasny
2008-07-04 15:07 ` Hans de Goede
@ 2008-07-04 17:35 ` Thierry Merle
1 sibling, 0 replies; 3+ messages in thread
From: Thierry Merle @ 2008-07-04 17:35 UTC (permalink / raw)
To: Gregor Jasny; +Cc: video4linux-list, v4l2-library
Gregor Jasny a écrit :
> 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;
> }
>
>
Applied on http://www.linuxtv.org/hg/~tmerle/v4l2-library
Thanks,
Thierry
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-07-04 17:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-04 14:40 PATCH: libv4l-fix-idct-inline-assembly.diff Gregor Jasny
2008-07-04 15:07 ` Hans de Goede
2008-07-04 17:35 ` Thierry Merle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox