From 09f8f05bce8914f6df3a0d7d6feca256ca5f12dd Mon Sep 17 00:00:00 2001 From: Marcus Asteborg Date: Fri, 5 Jun 2020 23:07:46 -0700 Subject: 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 --- celt/ecintrin.h | 4 ++++ celt/os_support.h | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'celt') 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 /* Improve compiler throughput. */ +#else # include +#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 -#include #include /** Opus wrapper for malloc(). To do your own dynamic allocation, all you need to do is replace this function and opus_free */ -- cgit v1.2.3