The original code has some comparisons to zero, but I'm wondering if
that is correct. If any zero's *are* in there, they probably
just need to be mapped to Q1 (which is the default).
So I had this change. It doesn't seem to break anything.
msb = lsb = 0;
if ((d.real > 0) && (d.imag > 0)) {
msb = 0; lsb = 0;
} else if ((d.real < 0) && (d.imag > 0)) {
msb = 0; lsb = 1;
} else if ((d.real < 0) && (d.imag < 0)) {
msb = 1; lsb = 1;
} else if ((d.real > 0) && (d.imag < 0)) {
msb = 1; lsb = 0;
}
73
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2