diff options
author | Gregory Maxwell <greg@xiph.org> | 2013-10-17 15:56:52 -0700 |
---|---|---|
committer | Gregory Maxwell <greg@xiph.org> | 2013-10-28 10:18:54 -0700 |
commit | 7830cf1bd2c71bad9aa296254cf5c5f9842e8b8e (patch) | |
tree | 53f28e34554bee867a239849b96283bec549a607 /src/mlp.c | |
parent | 2891d852a38b3acb1810fad9f26ba7e0b181cfb2 (diff) | |
download | libopus-7830cf1bd2c71bad9aa296254cf5c5f9842e8b8e.tar.gz |
Replace "inline" with OPUS_INLINE.
Newer versions of MSVC are unhappy with the strategy of the build
environment redefining "inline" (even though they don't support the
actual keyword). Instead we define OPUS_INLINE to the right thing
in opus_defines.h.
This is the same approach we use for restrict.
Diffstat (limited to 'src/mlp.c')
-rw-r--r-- | src/mlp.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -29,6 +29,9 @@ #include "config.h" #endif +#include "opus_types.h" +#include "opus_defines.h" + #include <math.h> #include "mlp.h" #include "arch.h" @@ -36,7 +39,7 @@ #define MAX_NEURONS 100 #if 0 -static inline opus_val16 tansig_approx(opus_val32 _x) /* Q19 */ +static OPUS_INLINE opus_val16 tansig_approx(opus_val32 _x) /* Q19 */ { int i; opus_val16 xx; /* Q11 */ @@ -62,7 +65,7 @@ static inline opus_val16 tansig_approx(opus_val32 _x) /* Q19 */ } #else /*extern const float tansig_table[501];*/ -static inline float tansig_approx(float x) +static OPUS_INLINE float tansig_approx(float x) { int i; float y, dy; |