denormal floats (was Re: [linux-audio-dev] XAP spec - early scribbles)

David Olofson david at olofson.net
Thu Feb 6 17:22:01 UTC 2003


On Thursday 06 February 2003 16.28, Steve Harris wrote:
[...]
> #define FLUSH_TO_ZERO(fv) (((*(unsigned
> int*)&(fv))&0x7f800000)==0)?0.0f:(fv) I think it came from the
> music-dsp list.

There's a conditional in there, though.

Another method is to add noise or some other signal (beep at Nyqvist) 
with an amplitude a few hundred dB or more below the 0 dB level of 
audio data.


//David Olofson - Programmer, Composer, Open Source Advocate

.- The Return of Audiality! --------------------------------.
| Free/Open Source Audio Engine for use in Games or Studio. |
| RT and off-line synth. Scripting. Sample accurate timing. |
`---------------------------> http://olofson.net/audiality -'
   --- http://olofson.net --- http://www.reologica.se ---




More information about the Linux-audio-dev mailing list