Commit 5751bc26 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

fpclassify() is C99, not necessarily available in C++

(cherry picked from commit d23fec0d)
parent 8e8dbcaa
SOURCES_spatializer = spatializer.cpp \ SOURCES_spatializer = spatializer.cpp \
allpass.cpp allpass.hpp comb.cpp comb.hpp \ allpass.cpp allpass.hpp comb.cpp comb.hpp \
denormals.h tuning.h revmodel.cpp revmodel.hpp denormals.h denormals.c tuning.h revmodel.cpp revmodel.hpp
...@@ -8,16 +8,11 @@ ...@@ -8,16 +8,11 @@
#ifndef _denormals_ #ifndef _denormals_
#define _denormals_ #define _denormals_
#include <stdint.h>
#include <math.h> #ifdef __cplusplus
extern "C"
static inline float undenormalise( float f ) #endif
{ float undenormalise( float );
if( fpclassify( f ) == FP_SUBNORMAL )
return 0.0;
return f;
}
#endif//_denormals_ #endif//_denormals_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment