Hi all,
I was having a look at the warnings that you get when compiling Codec2
using clang instead of GCC, and one of them strikes me as odd.
codebookjnd.c:3491:5: warning: implicit conversion turns literal
floating-point number into integer: 'double' to 'int' [-Wliteral-conversion]
11.7181,
^~~~~~~
Looking into this a bit further, this value is getting put into
lsp_codebook.log2m (the number of bits in "m") and is generated
automatically from unittest/lspjnd5-10.txt
Is it useful/valid to have a non-integer number of bits stored in this
structure? Should the output of generate_codebook be rounded, or should
struct lsp_codebook be altered to accept floats for the number of bits?
(My guess is that it doesn't really matter, but I'd like to understand it
for my own curiosity)
Regards,
Dan
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2