Re: [LAD] denormal handling

From: Paul Davis <paul@email-addr-hidden>
Date: Thu Sep 27 2007 - 19:38:05 EEST

On Thu, 2007-09-27 at 18:32 +0200, Georg Holzmann wrote:
> Hallo list!
>
> I am just thinking about the right strategy for denormal handling in a
> floating point (single or double prec) audio application (and yes I
> already read the docs of the different methods at musicdsp and so on ...)
>
> Basically my question is, if it is enough to simply turn on the
> Flush-to-zero and Denormals-are-zero mode and then compile everything
> with -msse -mfpmath=sse ?
> I know it won't run on older Pentium3,2 etc. - but for the machines
> which support this feature, is this enough ?

it helps, but adding a small DC bias (i.e. adding a very very very small
constant number to all sample data) works even better.

if you app is going to be GPL'ed, feel free to grab libs/pbd/fpu.cc from
the ardour source code.

--p

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-dev
Received on Thu Sep 27 20:15:03 2007

This archive was generated by hypermail 2.1.8 : Thu Sep 27 2007 - 20:15:03 EEST