Skip to content

Commit 3dee92e

Browse files
committed
fix usage of CV_FMA3 macro
1 parent 513c2b9 commit 3dee92e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/core/src/stat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4365,7 +4365,7 @@ float normL2Sqr_(const float* a, const float* b, int n)
43654365
for( ; j <= n - 8; j += 8 )
43664366
{
43674367
__m256 t0 = _mm256_sub_ps(_mm256_loadu_ps(a + j), _mm256_loadu_ps(b + j));
4368-
#ifdef CV_FMA3
4368+
#if CV_FMA3
43694369
d0 = _mm256_fmadd_ps(t0, t0, d0);
43704370
#else
43714371
d0 = _mm256_add_ps(d0, _mm256_mul_ps(t0, t0));

modules/dnn/src/layers/layers_common.simd.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void fastGEMM( const float* aptr, size_t astep, const float* bptr,
5959

6060
#if !defined(CV_CPU_OPTIMIZATION_DECLARATIONS_ONLY) && CV_AVX
6161

62-
#if !CV_FMA // AVX workaround
62+
#if !CV_FMA3 // AVX workaround
6363
#undef _mm256_fmadd_ps
6464
#define _mm256_fmadd_ps(a, b, c) _mm256_add_ps(c, _mm256_mul_ps(a, b))
6565
#endif

0 commit comments

Comments
 (0)