summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2018-10-31 02:36:17 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2018-10-31 02:36:17 -0400
commit55480908beebc07c91d26968e855f548bd7eea66 (patch)
treeed837d1f39a0527587b541fc350f7edba1936f26
parent833d2f0ed7ccfa01d560bccec81d45153c5f3b79 (diff)
downloadopus-55480908beebc07c91d26968e855f548bd7eea66.tar.gz
Make float2int() static with VS
Addresses the rest of https://github.com/xiph/opus/pull/79
-rw-r--r--celt/float_cast.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/celt/float_cast.h b/celt/float_cast.h
index f218e864..889dae96 100644
--- a/celt/float_cast.h
+++ b/celt/float_cast.h
@@ -99,7 +99,7 @@ static OPUS_INLINE opus_int32 float2int(float x) {return _mm_cvt_ss2si(_mm_set_s
#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined(_M_X64) || (defined(_M_IX86_FP) && _M_IX86_FP >= 1))
#include <xmmintrin.h>
- __inline long int float2int(float value)
+ static __inline long int float2int(float value)
{
return _mm_cvtss_si32(_mm_load_ss(&value));
}
@@ -110,7 +110,7 @@ static OPUS_INLINE opus_int32 float2int(float x) {return _mm_cvt_ss2si(_mm_set_s
** Therefore implement OPUS_INLINE versions of these functions here.
*/
- __inline long int
+ static __inline long int
float2int (float flt)
{ int intgr;