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
3dee92ec
Commit
3dee92ec
authored
Sep 26, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix usage of CV_FMA3 macro
parent
513c2b92
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
stat.cpp
modules/core/src/stat.cpp
+1
-1
layers_common.simd.hpp
modules/dnn/src/layers/layers_common.simd.hpp
+1
-1
No files found.
modules/core/src/stat.cpp
View file @
3dee92ec
...
...
@@ -4365,7 +4365,7 @@ float normL2Sqr_(const float* a, const float* b, int n)
for
(
;
j
<=
n
-
8
;
j
+=
8
)
{
__m256
t0
=
_mm256_sub_ps
(
_mm256_loadu_ps
(
a
+
j
),
_mm256_loadu_ps
(
b
+
j
));
#if
def
CV_FMA3
#if CV_FMA3
d0
=
_mm256_fmadd_ps
(
t0
,
t0
,
d0
);
#else
d0
=
_mm256_add_ps
(
d0
,
_mm256_mul_ps
(
t0
,
t0
));
...
...
modules/dnn/src/layers/layers_common.simd.hpp
View file @
3dee92ec
...
...
@@ -59,7 +59,7 @@ void fastGEMM( const float* aptr, size_t astep, const float* bptr,
#if !defined(CV_CPU_OPTIMIZATION_DECLARATIONS_ONLY) && CV_AVX
#if !CV_FMA // AVX workaround
#if !CV_FMA
3
// AVX workaround
#undef _mm256_fmadd_ps
#define _mm256_fmadd_ps(a, b, c) _mm256_add_ps(c, _mm256_mul_ps(a, b))
#endif
...
...
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