summaryrefslogtreecommitdiff
path: root/src/blitter/32bpp_sse4.hpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-01-13 18:05:47 +0000
committerrubidium <rubidium@openttd.org>2014-01-13 18:05:47 +0000
commit70901e04c55490d7c661f7fa5c31193860e648af (patch)
tree6f6d5e357aa3b359c5979919f45746e432fd4d76 /src/blitter/32bpp_sse4.hpp
parent2f7c4f6d12845e2f5be01285db86d5ba070c45ad (diff)
downloadopenttd-70901e04c55490d7c661f7fa5c31193860e648af.tar.xz
(svn r26255) -Codechange: improve performance of brightness adjustment (MJP)
Diffstat (limited to 'src/blitter/32bpp_sse4.hpp')
-rw-r--r--src/blitter/32bpp_sse4.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/blitter/32bpp_sse4.hpp b/src/blitter/32bpp_sse4.hpp
index d21b5ff33..f8a563b85 100644
--- a/src/blitter/32bpp_sse4.hpp
+++ b/src/blitter/32bpp_sse4.hpp
@@ -35,6 +35,11 @@ IGNORE_UNINITIALIZED_WARNING_START
(*(um128i*) &m_into).m128i = _mm_insert_epi32((*(um128i*) &m_into).m128i, v.u32.low, (m_rank)*2); \
(*(um128i*) &m_into).m128i = _mm_insert_epi32((*(um128i*) &m_into).m128i, v.u32.high, (m_rank)*2 + 1); \
}
+
+ #undef LOAD64
+ #define LOAD64(m_val, m_into) \
+ m_into = _mm_cvtsi32_si128(m_val); \
+ INSR32((m_val) >> 32, m_into, 1);
#endif
IGNORE_UNINITIALIZED_WARNING_STOP