@@ -18,12 +18,7 @@ void JLimiterInit(JamesDSPLib *jdsp)
1818#include <math.h>
1919#include <float.h>
2020#include "eel2/numericSys/codelet.h"
21- #ifndef min
22- #define min (a ,b ) (((a)<(b))?(a):(b))
23- #endif
24- #ifndef max
25- #define max (a ,b ) (((a)>(b))?(a):(b))
26- #endif
21+ #include "eel2/ns-eel.h"
2722#ifndef M_PI
2823#define M_PI 3.14159265358979323846
2924#endif
@@ -77,7 +72,7 @@ unsigned LLRevBitsM(unsigned int x, unsigned int bits)
7772void LLbitReversalTblM (unsigned * dst , unsigned int fftLen )
7873{
7974 unsigned int bits = LLIntegerLog2M (fftLen );
80- for (int i = 0 ; i < fftLen ; ++ i )
75+ for (unsigned int i = 0 ; i < fftLen ; ++ i )
8176 dst [i ] = LLRevBitsM (i , bits );
8277}
8378void LLsinHalfTblFloatM (float * dst , unsigned int fftLen )
@@ -154,7 +149,7 @@ static float lerp1DNoExtrapo(float val, float *x, float *y, int n)
154149void FFTCompressorSetSpectralFollowingRate (FFTDynamicRangeSquasher * comp , float fs , float fgt_facT )
155150{
156151 comp -> spectralRate = fs / (float )comp -> fftLen * (float )ANALYSIS_OVERLAP_DRS ;
157- comp -> fgt_fac = 1.0 - exp (-1.0 / (fgt_facT / 1000.0 * comp -> spectralRate ));
152+ comp -> fgt_fac = ( float )( 1.0 - exp (-1.0 / (fgt_facT / 1000.0 * comp -> spectralRate ) ));
158153}
159154void FFTCompressorSetParam (FFTDynamicRangeSquasher * comp , float fs , float maxAtk , float maxRel , float adapt )
160155{
0 commit comments