lmms/lmms-1.1.3-gcc-5.3-ladspa.patch

95 lines
2.5 KiB
Diff

--- lmms-1.1.3/plugins/LadspaEffect/swh/ladspa-util.h.orig 2016-04-22 20:26:05.662541545 +0200
+++ lmms-1.1.3/plugins/LadspaEffect/swh/ladspa-util.h 2016-04-22 20:26:52.048512562 +0200
@@ -59,7 +59,7 @@
// Denormalise floats, only actually needed for PIII and recent PowerPC
//#define FLUSH_TO_ZERO(fv) (((*(unsigned int*)&(fv))&0x7f800000)==0)?0.0f:(fv)
-static inline float flush_to_zero(float f)
+inline float flush_to_zero(float f)
{
ls_pcast32 v;
@@ -70,7 +70,7 @@
return (v.i & 0x7f800000) < 0x08000000 ? 0.0f : f;
}
-static inline void round_to_zero(volatile float *f)
+inline void round_to_zero(volatile float *f)
{
*f += 1e-18;
*f -= 1e-18;
@@ -78,7 +78,7 @@
/* A set of branchless clipping operations from Laurent de Soras */
-static inline float f_max(float x, float a)
+inline float f_max(float x, float a)
{
x -= a;
x += fabs(x);
@@ -88,7 +88,7 @@
return x;
}
-static inline float f_min(float x, float b)
+inline float f_min(float x, float b)
{
x = b - x;
x += fabs(x);
@@ -98,7 +98,7 @@
return x;
}
-static inline float f_clamp(float x, float a, float b)
+inline float f_clamp(float x, float a, float b)
{
const float x1 = fabs(x - a);
const float x2 = fabs(x - b);
@@ -129,7 +129,7 @@
#define LIN_INTERP(f,a,b) ((a) + (f) * ((b) - (a)))
// Cubic interpolation function
-static inline float cube_interp(const float fr, const float inm1, const float
+inline float cube_interp(const float fr, const float inm1, const float
in, const float inp1, const float inp2)
{
return in + 0.5f * fr * (inp1 - inm1 +
@@ -139,7 +139,7 @@
/* fast sin^2 aproxiamtion, adapted from jan AT rpgfan's posting to the
* music-dsp list */
-static inline float f_sin_sq(float angle)
+inline float f_sin_sq(float angle)
{
const float asqr = angle * angle;
float result = -2.39e-08f;
@@ -166,7 +166,7 @@
#else
// Round float to int using IEEE int* hack
-static inline int f_round(float f)
+inline int f_round(float f)
{
ls_pcast32 p;
@@ -179,7 +179,7 @@
#endif
// Truncate float to int
-static inline int f_trunc(float f)
+inline int f_trunc(float f)
{
return f_round(floorf(f));
}
--- lmms-1.1.3/plugins/LadspaEffect/swh/imp_1199.c.orig 2016-04-22 20:36:17.446165618 +0200
+++ lmms-1.1.3/plugins/LadspaEffect/swh/imp_1199.c 2016-04-22 20:37:09.784133888 +0200
@@ -70,7 +70,7 @@
fft_plan plan_rc[IMPULSES],
plan_cr[IMPULSES];
-static fftw_real *real_in, *real_out, *comp_in, *comp_out;
+fftw_real *real_in, *real_out, *comp_in, *comp_out;
unsigned int fft_length[IMPULSES];