Commit 5ad3ddc1 authored by Tomoaki Teshima's avatar Tomoaki Teshima

suppress warning

 - check if compiler is Intel compiler
 - remove not referenced variables
parent 9fa90c88
...@@ -428,7 +428,9 @@ public: ...@@ -428,7 +428,9 @@ public:
{ {
} }
#if defined(__INTEL_COMPILER)
#pragma optimization_parameter target_arch=AVX #pragma optimization_parameter target_arch=AVX
#endif
virtual void operator() (const Range& range) const virtual void operator() (const Range& range) const
{ {
Size ssize = src.size(), dsize = dst.size(); Size ssize = src.size(), dsize = dst.size();
...@@ -504,7 +506,9 @@ public: ...@@ -504,7 +506,9 @@ public:
{ {
} }
#if defined(__INTEL_COMPILER)
#pragma optimization_parameter target_arch=AVX #pragma optimization_parameter target_arch=AVX
#endif
virtual void operator() (const Range& range) const virtual void operator() (const Range& range) const
{ {
Size ssize = src.size(), dsize = dst.size(); Size ssize = src.size(), dsize = dst.size();
...@@ -605,11 +609,13 @@ public: ...@@ -605,11 +609,13 @@ public:
{ {
} }
#if defined(__INTEL_COMPILER)
#pragma optimization_parameter target_arch=SSE4.2 #pragma optimization_parameter target_arch=SSE4.2
#endif
virtual void operator() (const Range& range) const virtual void operator() (const Range& range) const
{ {
Size ssize = src.size(), dsize = dst.size(); Size ssize = src.size(), dsize = dst.size();
int y, x, pix_size = (int)src.elemSize(); int y, x;
int width = dsize.width; int width = dsize.width;
int sseWidth = width - (width & 0x7); int sseWidth = width - (width & 0x7);
for(y = range.start; y < range.end; y++) for(y = range.start; y < range.end; y++)
...@@ -666,11 +672,13 @@ public: ...@@ -666,11 +672,13 @@ public:
ify(_ify) ify(_ify)
{ {
} }
#if defined(__INTEL_COMPILER)
#pragma optimization_parameter target_arch=SSE4.2 #pragma optimization_parameter target_arch=SSE4.2
#endif
virtual void operator() (const Range& range) const virtual void operator() (const Range& range) const
{ {
Size ssize = src.size(), dsize = dst.size(); Size ssize = src.size(), dsize = dst.size();
int y, x, pix_size = (int)src.elemSize(); int y, x;
int width = dsize.width; int width = dsize.width;
int sseWidth = width - (width & 0x3); int sseWidth = width - (width & 0x3);
for(y = range.start; y < range.end; y++) for(y = range.start; y < range.end; y++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment