Displaying 2 results from an estimated 2 matches for "float_add".
Did you mean:
float_a
2007 Jan 25
1
Minor fixed point scaling problem
...n number of bits. (and that's what all
the shifting is about) This same code fragment is in normalize16() and
compute_rms() and a couple of other spots. I think it should be
encapsulated into a norm_shift() function that can be overridden for
specific processors.
Similarly, the AEC code uses FLOAT_ADD, _SUB, _MULT routines in
pseudofloat.h could be improved by shifting negative mantissa's >= -16384.
if (r.m>0)
{
if (r.m<16384)
{
r.m<<=1;
r.e-=1;
}
}else
{
if (r.m>=-16384)
{
r.m<<=1;
r.e-=1...
2007 Jan 25
3
SV: How to detect SpeexBits corruption
You might not be doing anything wrong. Speex is stateful and can
get into a bad state sometimes. It's happened to me too, but not
recently. And I've seen such bugs reported on this list and fixed.
I suggest several approaches to solving the problem:
1) Try compiling Speex without compiler optimizations and see if the
problem still occurs. Most likely it will, but this is an