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:
bc547c4
)
Fixes Issue #10181
author
Roman Cattaneo
<romanc@ethz.ch>
Tue, 28 Nov 2017 12:48:40 +0000
(13:48 +0100)
committer
Roman Cattaneo
<romanc@ethz.ch>
Tue, 28 Nov 2017 12:48:40 +0000
(13:48 +0100)
This PR fixes incorrect division by zero handling in template
specialization of `Div_SIMD` for type `double`.
modules/core/src/arithm_simd.hpp
patch
|
blob
|
history
diff --git
a/modules/core/src/arithm_simd.hpp
b/modules/core/src/arithm_simd.hpp
index
7d72383
..
373f940
100644
(file)
--- a/
modules/core/src/arithm_simd.hpp
+++ b/
modules/core/src/arithm_simd.hpp
@@
-1724,8
+1724,8
@@
struct Div_SIMD<double>
v_float64x2 res0 = f0 * v_scale / f2;
v_float64x2 res1 = f1 * v_scale / f3;
- res0 = v_select(f
0
== v_zero, v_zero, res0);
- res1 = v_select(f
1
== v_zero, v_zero, res1);
+ res0 = v_select(f
2
== v_zero, v_zero, res0);
+ res1 = v_select(f
3
== v_zero, v_zero, res1);
v_store(dst + x, res0);
v_store(dst + x + 2, res1);