LMMS
Loading...
Searching...
No Matches
plugins
LadspaEffect
cmt
cmt
src
freeverb
Components
denormals.h
Go to the documentation of this file.
1
// Macro for killing denormalled numbers
2
//
3
// Written by Jezar at Dreampoint, June 2000
4
// http://www.dreampoint.co.uk
5
// Originally based on IS_DENORMAL macro by Jon Watte, updated to use C99 isnormal().
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
#include <cmath>
14
#define undenormalise(sample) if(!std::isnormal(sample)) sample=0.0f
15
16
#endif
//_denormals_
17
18
//ends
Generated on
for LMMS by
1.16.1