summaryrefslogtreecommitdiff
path: root/src/resources/dye/dyepalette.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-23 02:27:15 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-23 02:27:15 +0300
commit4dcf9c8633315ce7ee16a23d165861de7e319922 (patch)
treeca7d4d56882f52f208c97aabbc5ba12e22c3d9e0 /src/resources/dye/dyepalette.h
parent2a9a7f7f0aa63f351100e7040e5827c7e1ed4015 (diff)
downloadmv-4dcf9c8633315ce7ee16a23d165861de7e319922.tar.gz
mv-4dcf9c8633315ce7ee16a23d165861de7e319922.tar.bz2
mv-4dcf9c8633315ce7ee16a23d165861de7e319922.tar.xz
mv-4dcf9c8633315ce7ee16a23d165861de7e319922.zip
Add s color dye function for sse2 (OpenGL).
Diffstat (limited to 'src/resources/dye/dyepalette.h')
-rw-r--r--src/resources/dye/dyepalette.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/resources/dye/dyepalette.h b/src/resources/dye/dyepalette.h
index ede36eb6d..3eefb4d2c 100644
--- a/src/resources/dye/dyepalette.h
+++ b/src/resources/dye/dyepalette.h
@@ -204,13 +204,45 @@ class DyePalette final
void replaceSOGLColorSimd(uint32_t *restrict pixels,
const int bufSize) const restrict2;
+ /**
+ * replace colors for OpenGL for S dye.
+ */
+ FUNCTION_SIMD_DEFAULT
+ void replaceSOGLColorSse2(uint32_t *restrict pixels,
+ const int bufSize) const restrict2;
+
+ /**
+ * replace colors for OpenGL for S dye.
+ */
+ FUNCTION_SIMD_DEFAULT
+ void replaceSOGLColorAvx2(uint32_t *restrict pixels,
+ const int bufSize) const restrict2;
+
#ifdef SIMD_SUPPORTED
/**
* replace colors for OpenGL for S dye.
*/
+ __attribute__ ((target ("sse2")))
+ void replaceSOGLColorSimd(uint32_t *restrict pixels,
+ const int bufSize) const restrict2;
+ /**
+ * replace colors for OpenGL for S dye.
+ */
__attribute__ ((target ("avx2")))
void replaceSOGLColorSimd(uint32_t *restrict pixels,
const int bufSize) const restrict2;
+ /**
+ * replace colors for OpenGL for S dye.
+ */
+ __attribute__ ((target ("sse2")))
+ void replaceSOGLColorSse2(uint32_t *restrict pixels,
+ const int bufSize) const restrict2;
+ /**
+ * replace colors for OpenGL for S dye.
+ */
+ __attribute__ ((target ("avx2")))
+ void replaceSOGLColorAvx2(uint32_t *restrict pixels,
+ const int bufSize) const restrict2;
#endif // SIMD_SUPPORTED
/**