[CELT-dev] Celt 0.7.1 Fixed math

Jean-Marc Valin Jean-Marc.Valin at USherbrooke.ca
Wed Sep 8 09:41:17 PDT 2010


Riccardo Micci <riccardo.micci at cambridgeconsultants.com> a écrit :
> I'm using Celt 0.7.1 in fixed math mode. In the celt_encode function, if
> the variable has_pitch is true, the function pitch_search is called.
> Within this function the find_best_pitch subfunction is called.
> Here the variable "float score;" is defined.
> Is this right? I was expecting not to see any float declaration in the
> fixed math code. Is it possible to redefine it as integer?

Even better, you can remove it entirely since it's never actually  
used. That's the reason it took me a while to notice (it was fixed in  
git a few weeks ago) because the compiler would completely optimize it  
away. BTW, not sure what compiler you're using, but it doesn't seem to  
be very good at optimizing if it didn't remove that.

Cheers,

    Jean-Marc




More information about the celt-dev mailing list