On Thu, Feb 06, 2003 at 11:13:45 +0100, David Olofson wrote:
> 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.

Yes, but its not in a float context so it wont get denormallised(?).

> 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.

Yes, this will work, and avoids branches.

- Steve 

Reply via email to