ref: ff31b79016082034330263ee14ab995bc9c7101d
parent: 96e2be37b88cdc00f842d486ef449fd3fcd348dc
author: MuldeR <[email protected]>
date: Mon Jun 17 10:09:40 EDT 2013
Enable SSE for MSVC Signed-off-by: Jean-Marc Valin <[email protected]>
--- a/win32/config.h
+++ b/win32/config.h
@@ -42,6 +42,11 @@
#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 */