please add it as a comment to the Denormalization preventer entry (no comments are allowed now) thanks

Type : quantization
References : Posted by scoofy[AT]inf[DOT]elte[DOT]hu
Notes :
You can zero out denormals by adding and subtracting a small number.

void kill_denormal_by_quantization(float &val)
{
static const float anti_denormal = 1e-18;
val += anti_denormal;
val -= anti_denormal;
}

Reference: Laurent de Soras' great article on denormal numbers:
http://ldesoras.free.fr/doc/articles/denormal-en.pdf

I tend to add DC because it is faster than quantization. A slight DC offset (0.000000000000000001) won't hurt. That's -360 decibels...

Comments
from : scoofy[AT]inf[DOT]elte[DOT]hu
comment : Sorry I got an error message when I tried to post a comment that's why I submitted this. Why did this got into the archive? Someone please remove this entry. Thanks.

from : scoofy[AT]inf[DOT]elte[DOT]hu
comment : Are comments allowed now?

from : Arif[AT]mail[DOT]---
comment : Who is this idiot? Atleast integer had some interesting social critique.