diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-12-21 01:48:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-12-21 01:48:47 +0300 |
commit | c1c14c1ec2410671894bc5d84b10766a6183c852 (patch) | |
tree | d929c47d2739aa0172aa8a03f976f545fc4913f3 /src/resources | |
parent | 412c329e164c4b3bef9de3fa6179f244b83b0f6d (diff) | |
download | manaverse-c1c14c1ec2410671894bc5d84b10766a6183c852.tar.gz manaverse-c1c14c1ec2410671894bc5d84b10766a6183c852.tar.bz2 manaverse-c1c14c1ec2410671894bc5d84b10766a6183c852.tar.xz manaverse-c1c14c1ec2410671894bc5d84b10766a6183c852.zip |
Rename dye function replaceSColor256 into replaceSColorSimd.
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/dye/dyepalette.h | 8 | ||||
-rw-r--r-- | src/resources/dye/dyepalette_replacescolor.cpp | 10 |
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); } |