Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
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// 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