From ad68a3311fa4fd96a23079d7173a10cfbfefde4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Fri, 17 Jul 2015 22:37:45 +0200 Subject: Don't check for SSE2 on runtime if it is guaranteed to be available. This will aid compiler to generate better code. --- src/Subtitles/RTS.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/Subtitles/RTS.cpp') diff --git a/src/Subtitles/RTS.cpp b/src/Subtitles/RTS.cpp index 934c89b2e..c4fda9699 100644 --- a/src/Subtitles/RTS.cpp +++ b/src/Subtitles/RTS.cpp @@ -187,10 +187,13 @@ void CWord::Paint(const CPoint& p, const CPoint& org) void CWord::Transform(CPoint org) { - if (m_bUseSSE2) { // SSE code - Transform_SSE2(org); - } else { // C-code +#if defined(_M_IX86_FP) && _M_IX86_FP < 2 + if (!m_bUseSSE2) { Transform_C(org); + } else +#endif + { + Transform_SSE2(org); } } -- cgit v1.2.3