[Ffmpeg-devel] [PATCH] cook: use bitshift instead of pow(f) func

Alexander Strasser eclipse7
Fri Feb 10 13:08:15 CET 2006


Benjamin Larsson wrote:
> Alexander Strasser wrote:
> >  basically it is all in the subject. Why?
> >
> >1 Because it is an integer operation anyway and this way it
> >  is easier to recognize it. The produced tables are identical.
> >2 The powf() function is not that widely supported yet, so when
> >  there is no need for it i don't see any reason to harm portability.
> >
> >  Patch attached.
> >
> >  If this solution is considered flawed or not acceptable for
> >one or the other reason, then at least consider changing powf()
> >to pow().
> >
> >  Alex (beastd)
> >  
> >
> If this also works on BE systems commit it. And while you are at it you
> can continue to integerize the code :)

  I don't see any reasons it wouldn't work on BE systems -> applied.

  If anyone sees problems in this code I am missing please tell me.

  About further integerizing the code I am afraid I don't have time
for it :(

  Alex (beastd)

More information about the ffmpeg-devel mailing list