From 6653e97cfe1b65485c69bda1fa23c837617dc67b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 26 Apr 2015 00:16:12 +0300 Subject: Use cilkplus in sdlimagehelper. --- src/resources/sdlimagehelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(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((v << aloss) -- cgit v1.2.3-60-g2f50