summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/resources/dye/dyepalette.h8
-rw-r--r--src/resources/dye/dyepalette_replacescolor.cpp10
2 files changed, 9 insertions, 9 deletions
diff --git a/src/resources/dye/dyepalette.h b/src/resources/dye/dyepalette.h
index 0e7567c56..663f5375e 100644
--- a/src/resources/dye/dyepalette.h
+++ b/src/resources/dye/dyepalette.h
@@ -75,16 +75,16 @@ class DyePalette final
* replace colors for SDL for S dye.
*/
FUNCTION_SIMD_DEFAULT
- void replaceSColor256(uint32_t *restrict pixels,
- const int bufSize) const restrict2;
+ void replaceSColorSimd(uint32_t *restrict pixels,
+ const int bufSize) const restrict2;
#ifdef SIMD_SUPPORTED
/**
* replace colors for SDL for S dye.
*/
__attribute__ ((target ("avx2")))
- void replaceSColor256(uint32_t *restrict pixels,
- const int bufSize) const restrict2;
+ void replaceSColorSimd(uint32_t *restrict pixels,
+ const int bufSize) const restrict2;
#endif // SIMD_SUPPORTED
/**
diff --git a/src/resources/dye/dyepalette_replacescolor.cpp b/src/resources/dye/dyepalette_replacescolor.cpp
index 7546ebe72..e24a56311 100644
--- a/src/resources/dye/dyepalette_replacescolor.cpp
+++ b/src/resources/dye/dyepalette_replacescolor.cpp
@@ -46,7 +46,7 @@ void DyePalette::replaceSColor(uint32_t *restrict pixels,
{
#ifdef __x86_64__
if (bufSize % 8 == 0)
- replaceSColor256(pixels, bufSize);
+ replaceSColorSimd(pixels, bufSize);
else
replaceSColorDefault(pixels, bufSize);
#else // __x86_64__
@@ -152,8 +152,8 @@ void print256(const char *const text, const __m256i &val)
}
__attribute__ ((target ("avx2")))
-void DyePalette::replaceSColor256(uint32_t *restrict pixels,
- const int bufSize) const restrict2
+void DyePalette::replaceSColorSimd(uint32_t *restrict pixels,
+ const int bufSize) const restrict2
{
std::vector<DyeColor>::const_iterator it_end = mColors.end();
const size_t sz = mColors.size();
@@ -205,8 +205,8 @@ void DyePalette::replaceSColor256(uint32_t *restrict pixels,
#endif // __x86_64__
FUNCTION_SIMD_DEFAULT
-void DyePalette::replaceSColor256(uint32_t *restrict pixels,
- const int bufSize) const restrict2
+void DyePalette::replaceSColorSimd(uint32_t *restrict pixels,
+ const int bufSize) const restrict2
{
replaceSColorDefault(pixels, bufSize);
}