diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-26 00:16:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-26 16:44:05 +0300 |
commit | 6653e97cfe1b65485c69bda1fa23c837617dc67b (patch) | |
tree | 93f61133607897d40091fea506820365a264c524 | |
parent | d526c8eaffc99e8f5618185f51a63fcb5b3ad645 (diff) | |
download | mv-6653e97cfe1b65485c69bda1fa23c837617dc67b.tar.gz mv-6653e97cfe1b65485c69bda1fa23c837617dc67b.tar.bz2 mv-6653e97cfe1b65485c69bda1fa23c837617dc67b.tar.xz mv-6653e97cfe1b65485c69bda1fa23c837617dc67b.zip |
Use cilkplus in sdlimagehelper.
-rw-r--r-- | src/resources/sdlimagehelper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/sdlimagehelper.cpp b/src/resources/sdlimagehelper.cpp index efa0daaf7..38939269f 100644 --- a/src/resources/sdlimagehelper.cpp +++ b/src/resources/sdlimagehelper.cpp @@ -217,7 +217,7 @@ Image *SDLImageHelper::_SDLload(SDL_Surface *tmpImage) const uint8_t ashift = fmt->Ashift; const uint8_t aloss = fmt->Aloss; const uint32_t *pixels = static_cast<uint32_t*>(tmpImage->pixels); - for (size_t i = 0; i < sz; ++ i) + cilk_for (size_t i = 0; i < sz; ++ i) { const unsigned v = (pixels[i] & amask) >> ashift; const uint8_t a = static_cast<const uint8_t>((v << aloss) |