Skip to content

Commit 8238531

Browse files
xavierarteagacodebot
authored andcommitted
phy: fix precoder types collision
1 parent ac233da commit 8238531

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

lib/phy/generic_functions/precoding/channel_precoder_avx2.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
using namespace srsran;
1515

16+
namespace {
17+
1618
// Size of an AVX2 register in complex numbers with 32-bit floating point precision.
1719
static constexpr unsigned AVX2_CF_SIZE = 4;
1820

@@ -39,6 +41,8 @@ simd_cf_interleaved operator*(const simd_cf_interleaved& re, const simd_cf_t& we
3941
return _mm256_fmaddsub_ps(re, weight.re, _mm256_mul_ps(_mm256_shuffle_ps(re, re, 0xb1), weight.im));
4042
}
4143

44+
} // namespace
45+
4246
void channel_precoder_avx2::apply_precoding_port(span<cf_t> port_re,
4347
const re_buffer_reader& input_re,
4448
span<const cf_t> port_weights)

lib/phy/generic_functions/precoding/channel_precoder_avx512.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
using namespace srsran;
1515

16+
namespace {
17+
1618
// Size of an AVX512 register in complex numbers with 32-bit floating point precision.
1719
static constexpr unsigned AVX512_CF_SIZE = 8;
1820

@@ -32,6 +34,8 @@ struct simd_cf_t {
3234
// Type to hold a set of complex numbers using an AVX512 register, with interleaved real and imaginary parts.
3335
using simd_cf_interleaved = __m512;
3436

37+
} // namespace
38+
3539
// Multiplication operator for the precoding weights.
3640
simd_cf_interleaved operator*(const simd_cf_interleaved& re, const simd_cf_t& weight)
3741
{

0 commit comments

Comments
 (0)