summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-21 01:48:47 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-21 01:48:47 +0300
commitc1c14c1ec2410671894bc5d84b10766a6183c852 (patch)
treed929c47d2739aa0172aa8a03f976f545fc4913f3 /src/resources
parent412c329e164c4b3bef9de3fa6179f244b83b0f6d (diff)
downloadplus-c1c14c1ec2410671894bc5d84b10766a6183c852.tar.gz
plus-c1c14c1ec2410671894bc5d84b10766a6183c852.tar.bz2
plus-c1c14c1ec2410671894bc5d84b10766a6183c852.tar.xz
plus-c1c14c1ec2410671894bc5d84b10766a6183c852.zip
Rename dye function replaceSColor256 into replaceSColorSimd.
Diffstat (limited to 'src/resources')
-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);
}