1 Nov 2006 02:22
Re: Improved remove-logo filter
Michael Niedermayer <michaelni <at> gmx.at>
2006-11-01 01:22:11 GMT
2006-11-01 01:22:11 GMT
Hi On Tue, Oct 31, 2006 at 01:13:29PM -0800, Trent Piepho wrote: > On Tue, 31 Oct 2006, Guillaume POIRIER wrote: > > > Hi Trent, > > > > Were you able to work on improving your patch? > > What was there to do? Change the asm to use "+" constraints > even though it doesn't always work with gcc 2.7.2? does gcc 2.7.2 compile mplayer at all? [...] > > > > > : "=m" (accumulator), "=r" (i), "=g" (j), "=r" (mask), "=r" (image) > > > > > : "m" (accumulator), "1" (i), "2" (j), "3" (mask), "4" (image), > > > > > "g" (logo_mask->width), "g" (stride) > > > > > > > > : "+m" (accumulator), "+r" (i), "+g" (j), "+r" (mask), "+r" (image) > > > > : "g" (logo_mask->width), "g" (stride) > > > > > > I've read several places that you can't use "+" to indicate an input/output > > > arguments in inline asm, it only works in machine descriptions. I think it > > > may have changed for newer versions of gcc. > > > > > > I've tried it, before and gcc doesn't complain about it, but it doesn't > > > always work. With broken constraints you will often get lucky and have > > > everything work, and then some random change to some peice of unrelated > > > code will have the optimizer make a choice that breaks the asm. So, it's(Continue reading)
RSS Feed