remove whitespace at eol
[goodguy/history.git] / cinelerra-5.1 / plugins / freeverb / Components / 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 /*
12 #define undenormalise(sample) \
13  if(((*(unsigned int*)&sample)&0x7f800000)==0) sample=0.0f
14 */
15
16 static inline void undenormalise(float &sample) {
17   union { float f; unsigned int u; } v;  v.f = sample;
18   if( !(v.u & 0x7f800000) ) sample=0.f;
19 }
20
21 #endif//_denormals_
22
23 //ends
24
25
26
27