projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bdd86e
)
SSE2 conversio in remap
author
Ilya Lavrenov
<ilya.lavrenov@itseez.com>
Mon, 29 Dec 2014 22:00:22 +0000
(
01:00
+0300)
committer
Ilya Lavrenov
<ilya.lavrenov@itseez.com>
Mon, 29 Dec 2014 22:00:22 +0000
(
01:00
+0300)
modules/imgproc/src/imgwarp.cpp
patch
|
blob
|
history
diff --git
a/modules/imgproc/src/imgwarp.cpp
b/modules/imgproc/src/imgwarp.cpp
index
d952b60
..
86ad254
100644
(file)
--- a/
modules/imgproc/src/imgwarp.cpp
+++ b/
modules/imgproc/src/imgwarp.cpp
@@
-4071,6
+4071,10
@@
public:
uint16x8_t v_scale = vdupq_n_u16(INTER_TAB_SIZE2-1);
for ( ; x1 <= bcols - 8; x1 += 8)
vst1q_u16(A + x1, vandq_u16(vld1q_u16(sA + x1), v_scale));
+ #elif CV_SSE2
+ __m128i v_scale = _mm_set1_epi16(INTER_TAB_SIZE2-1);
+ for ( ; x1 <= bcols - 8; x1 += 8)
+ _mm_storeu_si128((__m128i *)(A + x1), _mm_and_si128(_mm_loadu_si128((const __m128i *)(sA + x1)), v_scale));
#endif
for( ; x1 < bcols; x1++ )