diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2015-07-17 23:37:45 +0300 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2015-07-20 00:36:46 +0300 |
commit | ad68a3311fa4fd96a23079d7173a10cfbfefde4a (patch) | |
tree | 94c09437140616bacb064b917d67e36ca83b7c05 /src/Subtitles/RTS.cpp | |
parent | c604156dedab832174dfb9cd5ecbb42e05d4b983 (diff) |
Don't check for SSE2 on runtime if it is guaranteed to be available.
This will aid compiler to generate better code.
Diffstat (limited to 'src/Subtitles/RTS.cpp')
-rw-r--r-- | src/Subtitles/RTS.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
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);
}
}
|