Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
8b26906d
Commit
8b26906d
authored
Oct 24, 2018
by
Sayed Adel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core:vsx change behavior of v_round to rounding to nearest even
parent
91c6d36f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
intrin_vsx.hpp
modules/core/include/opencv2/core/hal/intrin_vsx.hpp
+2
-2
No files found.
modules/core/include/opencv2/core/hal/intrin_vsx.hpp
View file @
8b26906d
...
...
@@ -832,10 +832,10 @@ OPENCV_HAL_IMPL_VSX_BIN_FUNC2(v_int64x2, v_uint64x2, vec_udword2_c, v_absdiff, v
/** Rounding **/
inline
v_int32x4
v_round
(
const
v_float32x4
&
a
)
{
return
v_int32x4
(
vec_cts
(
vec_r
ound
(
a
.
val
)));
}
{
return
v_int32x4
(
vec_cts
(
vec_r
int
(
a
.
val
)));
}
inline
v_int32x4
v_round
(
const
v_float64x2
&
a
)
{
return
v_int32x4
(
vec_mergesqo
(
vec_ctso
(
vec_r
ound
(
a
.
val
)),
vec_int4_z
));
}
{
return
v_int32x4
(
vec_mergesqo
(
vec_ctso
(
vec_r
int
(
a
.
val
)),
vec_int4_z
));
}
inline
v_int32x4
v_floor
(
const
v_float32x4
&
a
)
{
return
v_int32x4
(
vec_cts
(
vec_floor
(
a
.
val
)));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment