|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
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:
I tend to add DC because it is faster than quantization. A slight DC offset (0.000000000000000001) won't hurt. That's -360 decibels...
Added on : 14/08/06 by scoofy[ AT ]inf[ DOT ]elte[ DOT ]hu
Are comments allowed now?
Added on : 03/10/06 by scoofy[ AT ]inf[ DOT ]elte[ DOT ]hu
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.
Added on : 13/02/07 by Arif[ AT ]mail[ DOT ]---
Who is this idiot? Atleast integer had some interesting social critique.
|Add your own comment|
Comments are displayed in fixed width, no HTML code allowed!