]> git.sesse.net Git - vlc/blob - modules/audio_filter/spatializer/denormals.h
f8714127144a394d8cad46de3d9c5afe4456c4b9
[vlc] / modules / audio_filter / spatializer / denormals.h
1 // Macro for killing denormalled numbers
2 //
3 // Written by Jezar at Dreampoint, June 2000
4 // http://www.dreampoint.co.uk
5 // Based on IS_DENORMAL macro by Jon Watte
6 // This code is public domain
7
8 #ifndef _denormals_
9 #define _denormals_
10
11 #define undenormalise(sample) if(((*(unsigned int*)&sample)&0x7f800000)==0) sample=0.0f
12
13 #endif//_denormals_
14
15 //ends