summaryrefslogtreecommitdiff
path: root/src/resources/dye/dye.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-26 23:26:41 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-26 23:26:41 +0300
commitb1032f8fde46889a3b9bdb25333f26225a28d0f4 (patch)
tree807badec9e8bc7181fbb1dfcb89cb4f3440c61cd /src/resources/dye/dye.cpp
parenta8acf366d3e943fb636e24b69c8c67152770d2cc (diff)
downloadplus-b1032f8fde46889a3b9bdb25333f26225a28d0f4.tar.gz
plus-b1032f8fde46889a3b9bdb25333f26225a28d0f4.tar.bz2
plus-b1032f8fde46889a3b9bdb25333f26225a28d0f4.tar.xz
plus-b1032f8fde46889a3b9bdb25333f26225a28d0f4.zip
Add restrict keyword into dye.
Diffstat (limited to 'src/resources/dye/dye.cpp')
-rw-r--r--src/resources/dye/dye.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/resources/dye/dye.cpp b/src/resources/dye/dye.cpp
index 3b7904122..e2544590f 100644
--- a/src/resources/dye/dye.cpp
+++ b/src/resources/dye/dye.cpp
@@ -34,7 +34,7 @@
#include "debug.h"
-Dye::Dye(const std::string &description)
+Dye::Dye(const std::string &restrict description)
{
for (int i = 0; i < dyePalateSize; ++i)
mDyePalettes[i] = nullptr;
@@ -139,7 +139,7 @@ void Dye::instantiate(std::string &restrict target,
target = s.str();
}
-int Dye::getType() const
+int Dye::getType() const restrict2
{
if (mDyePalettes[sPaleteIndex])
return 1;
@@ -148,7 +148,8 @@ int Dye::getType() const
return 0;
}
-void Dye::normalDye(uint32_t *restrict pixels, const int bufSize) const
+void Dye::normalDye(uint32_t *restrict pixels,
+ const int bufSize) const restrict2
{
if (!pixels)
return;
@@ -266,7 +267,8 @@ endlabel:{}
#endif // ENABLE_CILKPLUS
}
-void Dye::normalOGLDye(uint32_t *restrict pixels, const int bufSize) const
+void Dye::normalOGLDye(uint32_t *restrict pixels,
+ const int bufSize) const restrict2
{
if (!pixels)
return;