Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Use the C99 function isnormal instead of messing with the floats format
- directly.
- Index: cmt/src/freeverb/Components/denormals.h
- ===================================================================
- --- cmt.orig/src/freeverb/Components/denormals.h 2008-12-19 15:46:05.000000000 -0300
- +++ cmt/src/freeverb/Components/denormals.h 2008-12-20 15:44:49.000000000 -0300
- @@ -8,7 +8,11 @@
- #ifndef _denormals_
- #define _denormals_
- -#define undenormalise(sample) if(((*(unsigned int*)&sample)&0x7f800000)==0) sample=0.0f
- +#include <math.h>
- +
- +#define undenormalise(sample) \
- + if(!isnormal(sample)) \
- + sample -= 0.0f
- #endif//_denormals_
Add Comment
Please, Sign In to add comment