[MPlayer-cvslog] CVS: main/libaf af_format.c,1.26,1.27

Alex Beregszaszi alex at fsn.hu
Tue Feb 22 19:24:11 CET 2005


Hi,

> > > finally the dreaded white-noise-with-floats bug is fixed!!!!
> > >
> > > the problem is that lrintf was not prototyped on some systems, but
> > > it's easier and faster just not to use it at all. looks like the
> > > cola
> >
> > did you benchmark this change, AFAIK lrintf() should be MUCH faster
> > then casting to int, as the later needs to change the FPU rounding
> > mode several times
> 
> Benchmarked, for 5 million samples of ram garbage, lrintf took 0.5
> seconds, cast took 0.9 seconds. lrintf proved itself to be risky, so
> for an optimization of this size, imho it's not worth it.

That's a slowdown by almost two times... what do you say now, Rich? :)

-- 
Alex Beregszaszi 			e-mail: alex at fsn.hu
Free Software Network			cell: +36 70 3144424




More information about the MPlayer-cvslog mailing list