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/win32
diff options
context:
space:
mode:
authorMuldeR <mulder2@gmx.de>2013-06-17 22:09:40 +0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2013-06-17 22:11:15 +0400
commitff31b79016082034330263ee14ab995bc9c7101d (patch)
treead1341303268bf694ac2446a107a0971d9e76866 /win32
parent96e2be37b88cdc00f842d486ef449fd3fcd348dc (diff)
Enable SSE for MSVC
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
Diffstat (limited to 'win32')
-rw-r--r--win32/config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/win32/config.h b/win32/config.h
index bc8d8fed..81819b29 100644
--- a/win32/config.h
+++ b/win32/config.h
@@ -42,6 +42,11 @@ POSSIBILITY OF SUCH DAMAGE.
#pragma warning(disable : 4996)/* This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. */
#endif
+/* Enable SSE functions, if compiled with SSE/SSE2 (note that AMD64 implies SSE2) */
+#if defined(_M_X64) || (defined(_M_IX86_FP) && (_M_IX86_FP >= 1))
+#define __SSE__ 1
+#endif
+
#include "version.h"
#endif /* CONFIG_H */