[MPlayer-dev-eng] [PATCH] vf_ass: avoid a division

Clément Bœsch ubitux at gmail.com
Sat Sep 18 13:44:43 CEST 2010


On Sat, Sep 18, 2010 at 01:09:21PM +0200, Nicolas George wrote:
> Le jour de la Vertu, an CCXVIII, Reimar Döffinger a écrit :
> > Go ahead (though note that may suggestion is to check the src before
> > instead of after the multiplication).
> 
> It is indeed significantly faster (+7.4% instead of +3.6%). I must say that
> I am slightly disappointed with gcc's optimizations. And I am even more
> disappointed that declaring k outside of the loop makes a difference (+8.2%
> instead of +7.4%). (I had to change the declaration of k because "ISO C90
> forbids mixed declarations and code".)
> 

Here, the binary does not change wherever I declare k using GCC 4.5.1.

Regards,

-- 
Clément B.


More information about the MPlayer-dev-eng mailing list