ladspa/tap-type-punning-fix.dif
Takashi Iwai d49fdc9268 Accepting request 30272 from home:plater
Copy from home:plater/ladspa via accept of submit request 30272 revision 17.
Request was accepted with message:
reviewed ok.

OBS-URL: https://build.opensuse.org/request/show/30272
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/ladspa?expand=0&rev=10
2010-01-22 13:58:58 +00:00

20 lines
493 B
Plaintext

Index: tap-plugins-0.7.1/tap_utils.h
===================================================================
--- tap_utils.h
+++ tap_utils.h 2004-03-05 15:45:53.000000000 +0100
@@ -95,6 +95,14 @@ for any bugs or malfunction. */
#define LN_2_2 0.34657359f
+static inline float FLUSH_TO_ZERO(float fv) {
+ union {
+ float f;
+ int i;
+ } v;
+ v.f = fv;
+ return (v.i & 0x7f800000) == 0 ?0.0f : fv;
+}
#define LIMIT(v,l,u) ((v)<(l)?(l):((v)>(u)?(u):(v)))
#define BIQUAD_TYPE float