summaryrefslogtreecommitdiff
path: root/src/blitter/32bpp_sse4.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-01-02 23:52:13 +0000
committerrubidium <rubidium@openttd.org>2014-01-02 23:52:13 +0000
commit4c84d13454414b84b72540265b793aeec938cdd3 (patch)
treea69300b5060379854a96a10bbe1fa786011403dc /src/blitter/32bpp_sse4.cpp
parent78df732a7b7e987b66c85eeb243ce5e0dd59d3a6 (diff)
downloadopenttd-4c84d13454414b84b72540265b793aeec938cdd3.tar.xz
(svn r26214) -Add: specialised animated SSE4 blitter (MJP)
With 32bpp base set about 15-20% faster in the Draw function (slower with 8bpp base set). Overall, with 32bpp base set, about 5% faster.
Diffstat (limited to 'src/blitter/32bpp_sse4.cpp')
-rw-r--r--src/blitter/32bpp_sse4.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blitter/32bpp_sse4.cpp b/src/blitter/32bpp_sse4.cpp
index 7243f754b..7d2bc91aa 100644
--- a/src/blitter/32bpp_sse4.cpp
+++ b/src/blitter/32bpp_sse4.cpp
@@ -289,10 +289,10 @@ inline Colour Blitter_32bppSSE4::AdjustBrightness(Colour colour, uint8 brightnes
/* Shortcut for normal brightness. */
if (brightness == DEFAULT_BRIGHTNESS) return colour;
- return this->ReallyAdjustBrightness(colour, brightness);
+ return Blitter_32bppSSE4::ReallyAdjustBrightness(colour, brightness);
}
-Colour Blitter_32bppSSE4::ReallyAdjustBrightness(Colour colour, uint8 brightness)
+/* static */ Colour Blitter_32bppSSE4::ReallyAdjustBrightness(Colour colour, uint8 brightness)
{
ALIGN(16) uint64 c16 = colour.b | (uint64) colour.g << 16 | (uint64) colour.r << 32;
c16 *= brightness;