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
28db4a22
Commit
28db4a22
authored
8 years ago
by
Maksim Shabunin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7175 from tomoaki0705:featureIntrinsic64
parents
1ac1e5be
7fef96be
No related merge requests found
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
0 deletions
+16
-0
intrin_neon.hpp
modules/core/include/opencv2/core/hal/intrin_neon.hpp
+0
-0
intrin_sse.hpp
modules/core/include/opencv2/core/hal/intrin_sse.hpp
+10
-0
test_intrin.cpp
modules/core/test/test_intrin.cpp
+6
-0
accum.cpp
modules/imgproc/src/accum.cpp
+0
-0
No files found.
modules/core/include/opencv2/core/hal/intrin_neon.hpp
View file @
28db4a22
This diff is collapsed.
Click to expand it.
modules/core/include/opencv2/core/hal/intrin_sse.hpp
View file @
28db4a22
...
...
@@ -1611,11 +1611,21 @@ inline v_float64x2 v_cvt_f64(const v_int32x4& a)
return
v_float64x2
(
_mm_cvtepi32_pd
(
a
.
val
));
}
inline
v_float64x2
v_cvt_f64_high
(
const
v_int32x4
&
a
)
{
return
v_float64x2
(
_mm_cvtepi32_pd
(
_mm_srli_si128
(
a
.
val
,
8
)));
}
inline
v_float64x2
v_cvt_f64
(
const
v_float32x4
&
a
)
{
return
v_float64x2
(
_mm_cvtps_pd
(
a
.
val
));
}
inline
v_float64x2
v_cvt_f64_high
(
const
v_float32x4
&
a
)
{
return
v_float64x2
(
_mm_cvtps_pd
(
_mm_castsi128_ps
(
_mm_srli_si128
(
_mm_castps_si128
(
a
.
val
),
8
))));
}
//! @endcond
}
...
...
This diff is collapsed.
Click to expand it.
modules/core/test/test_intrin.cpp
View file @
28db4a22
...
...
@@ -652,12 +652,18 @@ template<typename R> struct TheTest
dataA
*=
1.1
;
R
a
=
dataA
;
Rt
b
=
v_cvt_f64
(
a
);
Rt
c
=
v_cvt_f64_high
(
a
);
Data
<
Rt
>
resB
=
b
;
Data
<
Rt
>
resC
=
c
;
int
n
=
std
::
min
<
int
>
(
Rt
::
nlanes
,
R
::
nlanes
);
for
(
int
i
=
0
;
i
<
n
;
++
i
)
{
EXPECT_EQ
((
typename
Rt
::
lane_type
)
dataA
[
i
],
resB
[
i
]);
}
for
(
int
i
=
0
;
i
<
n
;
++
i
)
{
EXPECT_EQ
((
typename
Rt
::
lane_type
)
dataA
[
i
+
n
],
resC
[
i
]);
}
#endif
return
*
this
;
}
...
...
This diff is collapsed.
Click to expand it.
modules/imgproc/src/accum.cpp
View file @
28db4a22
This diff is collapsed.
Click to expand it.
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