hi, I am currently trying out speex version of 1.1.6 FIXED_POINT. noticed there's a 64 bit integer being used in the long term prediction. any chance of using a 32 bit integer without incurring some major side-effects? cheers, tk
On Tue, 2005-01-11 at 14:48 +0800, tunkeat wrote:> hi, > > I am currently trying out speex version of 1.1.6 FIXED_POINT. > > noticed there's a 64 bit integer being used in the long term prediction. > any chance of using a 32 bit integer without incurring some major side-effects?alas, the compilers themselves do not have the property of being TOTALLY parametrizable on the number of bits, or that's at least my comprehension of the problem. what do you call major ? regards, c> cheers, > tk > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev >--
> noticed there's a 64 bit integer being used in the long term prediction. > any chance of using a 32 bit integer without incurring some major side-effects?A 32-bit integer may overflow (which is why I used a 64-bit int). Of course, it's possible to emulate it using 32-bit arithmetic. Otherwise, there's probably a work-around, but it would require rewriting that part of the search. Jean-Marc> cheers, > tk > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev >-- Jean-Marc Valin <Jean-Marc.Valin@USherbrooke.ca> Universit? de Sherbrooke
On Tue, 2005-01-11 at 02:07 -0500, Jean-Marc Valin wrote:> > noticed there's a 64 bit integer being used in the long term prediction. > > any chance of using a 32 bit integer without incurring some major side-effects? > > A 32-bit integer may overflow (which is why I used a 64-bit int). Of > course, it's possible to emulate it using 32-bit arithmetic. Otherwise, > there's probably a work-around, but it would require rewriting that part > of the search.32 bits should be a concern, mon cher Jean-Marc, lowcosts are on this side where do you leave ? Claude> Jean-Marc > > > cheers, > > tk > > _______________________________________________ > > Speex-dev mailing list > > Speex-dev@xiph.org > > http://lists.xiph.org/mailman/listinfo/speex-dev > >--