// Microsoft version of 'inline'\r
#define inline __inline\r
\r
+// In Visual Studio, _M_IX86_FP=1 means /arch:SSE was used, likewise\r
+// _M_IX86_FP=2 means /arch:SSE2 was used.\r
+// Also, enable both _USE_SSE and _USE_SSE2 if we're compiling for x86-64\r
+#if _M_IX86_FP >= 1 || defined(_M_X64)\r
+#define _USE_SSE\r
+#endif\r
+\r
+#if _M_IX86_FP >= 2 || defined(_M_X64)\r
+#define _USE_SSE2\r
+#endif\r
+\r
// Visual Studio support alloca(), but it always align variables to 16-bit\r
// boundary, while SSE need 128-bit alignment. So we disable alloca() when\r
// SSE is enabled.\r