[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[fluid-dev] floats or doubles?

From: Pedro Lopez-Cabanillas
Subject: [fluid-dev] floats or doubles?
Date: Tue, 28 Sep 2010 23:29:50 +0200
User-agent: KMail/1.13.5 (Linux/; KDE/4.4.4; i686; ; )


The old autotools build system defaults to using single precision floating 
point numbers in DSP calculations and buffers (symbol WITH_FLOAT defined in 
config.h) but there is an alternative, if the user provides to the "configure" 
script the argument "--with-doubles=no", that in despite of logic has the 
effect of undefining WITH_FLOAT in config.h, enabling double precision 
floating point numbers. 

The new CMake build system uses by default double precision floating point  
numbers, but there is an option ("-Denable-floats=yes" as a command line 
argument) that defines WITH_FLOAT in config.h forcing the usage of single 
precision floating point numbers in DSP buffers and calculations.

Double precision real numbers are bigger, and probably have worse performance 
than single precision floats, but maybe they can produce better sound in some 
circumstances. Floats are probably safer because they have been tested more 
deeply, as the ticket #87 has shown.

So, what do you think? leave doubles as default in CMake, or change the 
default to floats, like in the old autotools?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]