diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-25 01:18:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-25 01:18:10 +0300 |
commit | 971159bb7102962299543d323798fbf43185899a (patch) | |
tree | ed2bff2fa3e753c8a359bffac0ecc9690c5b78ce /src/resources/dye/dyepalette.h | |
parent | 69aaf75b49cdf385b03469b82dd05480abf6e8b5 (diff) | |
download | manaplus-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.h')
-rw-r--r-- | src/resources/dye/dyepalette.h | 43 |
1 files changed, 3 insertions, 40 deletions
diff --git a/src/resources/dye/dyepalette.h b/src/resources/dye/dyepalette.h index 4129928fa..1ac15c9a0 100644 --- a/src/resources/dye/dyepalette.h +++ b/src/resources/dye/dyepalette.h @@ -92,54 +92,14 @@ class DyePalette final /** * replace colors for SDL for A dye. */ - void replaceAColor(uint32_t *restrict pixels, - const int bufSize) const restrict2; - - /** - * replace colors for SDL for A dye. - */ void replaceAColorDefault(uint32_t *restrict pixels, const int bufSize) const restrict2; - /** - * replace colors for SDL for A dye. - */ - FUNCTION_SIMD_DEFAULT - void replaceAColorSimd(uint32_t *restrict pixels, - const int bufSize) const restrict2; - - /** - * replace colors for SDL for A dye. - */ - FUNCTION_SIMD_DEFAULT - void replaceAColorSse2(uint32_t *restrict pixels, - const int bufSize) const restrict2; - - /** - * replace colors for SDL for A dye. - */ - FUNCTION_SIMD_DEFAULT - void replaceAColorAvx2(uint32_t *restrict pixels, - const int bufSize) const restrict2; - #ifdef SIMD_SUPPORTED /** * replace colors for SDL for A dye. */ __attribute__ ((target ("sse2"))) - void replaceAColorSimd(uint32_t *restrict pixels, - const int bufSize) const restrict2; - - /** - * replace colors for SDL for A dye. - */ - __attribute__ ((target ("avx2"))) - void replaceAColorSimd(uint32_t *restrict pixels, - const int bufSize) const restrict2; - /** - * replace colors for SDL for A dye. - */ - __attribute__ ((target ("sse2"))) void replaceAColorSse2(uint32_t *restrict pixels, const int bufSize) const restrict2; @@ -248,6 +208,9 @@ class DyePalette final static DyeFunctionPtr funcReplaceSOGLColor; static DyeFunctionPtr funcReplaceSOGLColorSse2; static DyeFunctionPtr funcReplaceSOGLColorAvx2; + static DyeFunctionPtr funcReplaceAColor; + static DyeFunctionPtr funcReplaceAColorSse2; + static DyeFunctionPtr funcReplaceAColorAvx2; #ifndef UNITTESTS private: |