Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
spbro
OpenXG-RAN
Commits
30ae13a2
Commit
30ae13a2
authored
Jan 11, 2022
by
rmagueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace hardcoded 8 by sizeof(uint64_t) related to memory alignment of 8 bytes
parent
5a34801a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
+2
-2
No files found.
openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
View file @
30ae13a2
...
@@ -1137,7 +1137,7 @@ int nr_srs_channel_estimation(PHY_VARS_gNB *gNB,
...
@@ -1137,7 +1137,7 @@ int nr_srs_channel_estimation(PHY_VARS_gNB *gNB,
multadd_real_vector_complex_scalar
(
filt8_start
,
ls_estimated
,
srs_estimated_channel16
,
8
);
multadd_real_vector_complex_scalar
(
filt8_start
,
ls_estimated
,
srs_estimated_channel16
,
8
);
}
else
if
(
nr_srs_info
->
sc_list
[
sc_idx
]
<
nr_srs_info
->
sc_list
[
sc_idx
-
1
])
{
// Start of OFDM symbol case
}
else
if
(
nr_srs_info
->
sc_list
[
sc_idx
]
<
nr_srs_info
->
sc_list
[
sc_idx
-
1
])
{
// Start of OFDM symbol case
// filt8_start is {12288,8192,4096,0,0,0,0,0}
// filt8_start is {12288,8192,4096,0,0,0,0,0}
srs_estimated_channel16
=
(
int16_t
*
)
&
srs_estimated_channel_freq
[
ant
][
nr_srs_info
->
sc_list
[
sc_idx
+
2
]]
-
8
;
srs_estimated_channel16
=
(
int16_t
*
)
&
srs_estimated_channel_freq
[
ant
][
nr_srs_info
->
sc_list
[
sc_idx
+
2
]]
-
sizeof
(
uint64_t
)
;
multadd_real_vector_complex_scalar
(
filt8_start
,
ls_estimated
,
srs_estimated_channel16
,
8
);
multadd_real_vector_complex_scalar
(
filt8_start
,
ls_estimated
,
srs_estimated_channel16
,
8
);
}
else
if
((
sc_idx
<
(
nr_srs_info
->
sc_list_length
-
1
)
&&
nr_srs_info
->
sc_list
[
sc_idx
+
1
]
<
nr_srs_info
->
sc_list
[
sc_idx
])
}
else
if
((
sc_idx
<
(
nr_srs_info
->
sc_list_length
-
1
)
&&
nr_srs_info
->
sc_list
[
sc_idx
+
1
]
<
nr_srs_info
->
sc_list
[
sc_idx
])
||
(
sc_idx
==
(
nr_srs_info
->
sc_list_length
-
1
)))
{
// End of OFDM symbol or last subcarrier cases
||
(
sc_idx
==
(
nr_srs_info
->
sc_list_length
-
1
)))
{
// End of OFDM symbol or last subcarrier cases
...
@@ -1156,7 +1156,7 @@ int nr_srs_channel_estimation(PHY_VARS_gNB *gNB,
...
@@ -1156,7 +1156,7 @@ int nr_srs_channel_estimation(PHY_VARS_gNB *gNB,
// filt16_start is {12288,8192,8192,8192,4096,0,0,0,0,0,0,0,0,0,0,0}
// filt16_start is {12288,8192,8192,8192,4096,0,0,0,0,0,0,0,0,0,0,0}
multadd_real_vector_complex_scalar
(
filt16_start
,
ls_estimated
,
srs_estimated_channel16
,
16
);
multadd_real_vector_complex_scalar
(
filt16_start
,
ls_estimated
,
srs_estimated_channel16
,
16
);
}
else
if
(
nr_srs_info
->
sc_list
[
sc_idx
]
<
nr_srs_info
->
sc_list
[
sc_idx
-
1
])
{
// Start of OFDM symbol case
}
else
if
(
nr_srs_info
->
sc_list
[
sc_idx
]
<
nr_srs_info
->
sc_list
[
sc_idx
-
1
])
{
// Start of OFDM symbol case
srs_estimated_channel16
=
(
int16_t
*
)
&
srs_estimated_channel_freq
[
ant
][
nr_srs_info
->
sc_list
[
sc_idx
+
1
]]
-
8
;
srs_estimated_channel16
=
(
int16_t
*
)
&
srs_estimated_channel_freq
[
ant
][
nr_srs_info
->
sc_list
[
sc_idx
+
1
]]
-
sizeof
(
uint64_t
)
;
// filt16_start is {12288,8192,8192,8192,4096,0,0,0,0,0,0,0,0,0,0,0}
// filt16_start is {12288,8192,8192,8192,4096,0,0,0,0,0,0,0,0,0,0,0}
multadd_real_vector_complex_scalar
(
filt16_start
,
ls_estimated
,
srs_estimated_channel16
,
16
);
multadd_real_vector_complex_scalar
(
filt16_start
,
ls_estimated
,
srs_estimated_channel16
,
16
);
}
else
if
((
sc_idx
<
(
nr_srs_info
->
sc_list_length
-
1
)
&&
nr_srs_info
->
sc_list
[
sc_idx
+
1
]
<
nr_srs_info
->
sc_list
[
sc_idx
])
}
else
if
((
sc_idx
<
(
nr_srs_info
->
sc_list_length
-
1
)
&&
nr_srs_info
->
sc_list
[
sc_idx
+
1
]
<
nr_srs_info
->
sc_list
[
sc_idx
])
...
...
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