summaryrefslogtreecommitdiff
path: root/src/resources/dye/dyepalette.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-25 01:18:10 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-25 01:18:10 +0300
commit971159bb7102962299543d323798fbf43185899a (patch)
treeed2bff2fa3e753c8a359bffac0ecc9690c5b78ce /src/resources/dye/dyepalette.cpp
parent69aaf75b49cdf385b03469b82dd05480abf6e8b5 (diff)
downloadmanaplus-971159bb7102962299543d323798fbf43185899a.tar.gz
manaplus-971159bb7102962299543d323798fbf43185899a.tar.bz2
manaplus-971159bb7102962299543d323798fbf43185899a.tar.xz
manaplus-971159bb7102962299543d323798fbf43185899a.zip
Switch in replaceAColor into using custom despatcher.
Diffstat (limited to 'src/resources/dye/dyepalette.cpp')
-rw-r--r--src/resources/dye/dyepalette.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/resources/dye/dyepalette.cpp b/src/resources/dye/dyepalette.cpp
index c341d140e..bf12b7047 100644
--- a/src/resources/dye/dyepalette.cpp
+++ b/src/resources/dye/dyepalette.cpp
@@ -50,6 +50,9 @@ DyeFunctionPtr DyePalette::funcReplaceSColorAvx2 = nullptr;
DyeFunctionPtr DyePalette::funcReplaceSOGLColor = nullptr;
DyeFunctionPtr DyePalette::funcReplaceSOGLColorSse2 = nullptr;
DyeFunctionPtr DyePalette::funcReplaceSOGLColorAvx2 = nullptr;
+DyeFunctionPtr DyePalette::funcReplaceAColor = nullptr;
+DyeFunctionPtr DyePalette::funcReplaceAColorSse2 = nullptr;
+DyeFunctionPtr DyePalette::funcReplaceAColorAvx2 = nullptr;
DyePalette::DyePalette(const std::string &restrict description,
const uint8_t blockSize) :
@@ -248,6 +251,9 @@ void DyePalette::initFunctions()
funcReplaceSOGLColor = &DyePalette::replaceSOGLColorAvx2;
funcReplaceSOGLColorAvx2 = &DyePalette::replaceSOGLColorAvx2;
funcReplaceSOGLColorSse2 = &DyePalette::replaceSOGLColorSse2;
+ funcReplaceAColor = &DyePalette::replaceAColorAvx2;
+ funcReplaceAColorAvx2 = &DyePalette::replaceAColorAvx2;
+ funcReplaceAColorSse2 = &DyePalette::replaceAColorSse2;
}
else if (flags & Cpu::FEATURE_SSE2)
{
@@ -257,6 +263,9 @@ void DyePalette::initFunctions()
funcReplaceSOGLColor = &DyePalette::replaceSOGLColorSse2;
funcReplaceSOGLColorAvx2 = &DyePalette::replaceSOGLColorSse2;
funcReplaceSOGLColorSse2 = &DyePalette::replaceSOGLColorSse2;
+ funcReplaceAColor = &DyePalette::replaceAColorSse2;
+ funcReplaceAColorAvx2 = &DyePalette::replaceAColorSse2;
+ funcReplaceAColorSse2 = &DyePalette::replaceAColorSse2;
}
else
#endif // SIMD_SUPPORTED
@@ -267,5 +276,8 @@ void DyePalette::initFunctions()
funcReplaceSOGLColor = &DyePalette::replaceSOGLColorDefault;
funcReplaceSOGLColorAvx2 = &DyePalette::replaceSOGLColorDefault;
funcReplaceSOGLColorSse2 = &DyePalette::replaceSOGLColorDefault;
+ funcReplaceAColor = &DyePalette::replaceAColorDefault;
+ funcReplaceAColorAvx2 = &DyePalette::replaceAColorDefault;
+ funcReplaceAColorSse2 = &DyePalette::replaceAColorDefault;
}
}