2010-04-03 00:20:58 +02:00
|
|
|
--- tap_utils.h-dist 2004-03-05 15:44:58.000000000 +0100
|
2008-02-15 01:27:33 +01:00
|
|
|
+++ tap_utils.h 2004-03-05 15:45:53.000000000 +0100
|
2010-04-03 00:20:58 +02:00
|
|
|
@@ -92,7 +92,14 @@
|
2008-02-15 01:27:33 +01:00
|
|
|
|
|
|
|
|
|
|
|
#define LN_2_2 0.34657359f
|
2010-04-03 00:20:58 +02:00
|
|
|
-#define FLUSH_TO_ZERO(x) (((*(unsigned int*)&(x))&0x7f800000)==0)?0.0f:(x)
|
2008-02-15 01:27:33 +01:00
|
|
|
+static inline float FLUSH_TO_ZERO(float fv) {
|
|
|
|
+ union {
|
|
|
|
+ float f;
|
|
|
|
+ int i;
|
2010-04-03 00:20:58 +02:00
|
|
|
+ } v;
|
|
|
|
+ v.f = fv;
|
2008-02-15 01:27:33 +01:00
|
|
|
+ return (v.i & 0x7f800000) == 0 ?0.0f : fv;
|
|
|
|
+}
|
|
|
|
#define LIMIT(v,l,u) ((v)<(l)?(l):((v)>(u)?(u):(v)))
|
|
|
|
|
|
|
|
#define BIQUAD_TYPE float
|