Merge branch 'stable-1.1'

This commit is contained in:
Vesa
2014-11-18 09:22:25 +02:00
8 changed files with 49 additions and 26 deletions

View File

@@ -25,6 +25,14 @@
#ifndef _MIXER_H
#define _MIXER_H
// denormals stripping
#ifdef __SSE__
#include <xmmintrin.h>
#endif
#ifdef __SSE3__
#include <pmmintrin.h>
#endif
#include "lmmsconfig.h"
#ifndef LMMS_USE_3RDPARTY_LIBSRC

View File

@@ -47,6 +47,12 @@ using namespace std;
#ifndef _isinff
#define _isinff(x) isinf(x)
#endif
#ifndef exp10
#define exp10(x) pow( 10, x )
#endif
#ifndef exp10f
#define exp10f(x) powf( 10, x )
#endif
#endif
#ifdef __INTEL_COMPILER
@@ -203,7 +209,7 @@ static inline float dbvToAmp( float dbv )
{
return isinff( dbv )
? 0.0f
: powf( 10.0f, dbv * 0.05f );
: exp10f( dbv * 0.05f );
}