Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/celt
diff options
context:
space:
mode:
authorMarcus Asteborg <maastebo@microsoft.com>2020-06-06 09:07:46 +0300
committerJean-Marc Valin <jmvalin@jmvalin.ca>2020-06-12 04:25:06 +0300
commit09f8f05bce8914f6df3a0d7d6feca256ca5f12dd (patch)
tree7d8db05d87db3e2ac740dfa5463bf114bfd72181 /celt
parentfe00017a06ddf9314ce79a83a60ae6333769bb24 (diff)
Build time improvement, for MSVC use intrin0.h instead of intrin.h and remove usage of stdio.h in production code
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
Diffstat (limited to 'celt')
-rw-r--r--celt/ecintrin.h4
-rw-r--r--celt/os_support.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/celt/ecintrin.h b/celt/ecintrin.h
index 2263cff6..0b4ca71e 100644
--- a/celt/ecintrin.h
+++ b/celt/ecintrin.h
@@ -49,7 +49,11 @@
This macro should only be used for implementing ec_ilog(), if it is defined.
All other code should use EC_ILOG() instead.*/
#if defined(_MSC_VER) && (_MSC_VER >= 1400)
+#if defined(_MSC_VER) && (_MSC_VER >= 1900)
+# include <intrin0.h> /* Improve compiler throughput. */
+#else
# include <intrin.h>
+#endif
/*In _DEBUG mode this is not an intrinsic by default.*/
# pragma intrinsic(_BitScanReverse)
diff --git a/celt/os_support.h b/celt/os_support.h
index a2171971..009bf861 100644
--- a/celt/os_support.h
+++ b/celt/os_support.h
@@ -39,7 +39,6 @@
#include "opus_defines.h"
#include <string.h>
-#include <stdio.h>
#include <stdlib.h>
/** Opus wrapper for malloc(). To do your own dynamic allocation, all you need to do is replace this function and opus_free */