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
lizhongxiao
OpenXG-RAN
Commits
48259329
Commit
48259329
authored
1 year ago
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Perform channel leveling in 64 bits to prevent int under/overflow
parent
8ed9d034
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
openair1/PHY/NR_UE_TRANSPORT/nr_dlsch_demodulation.c
openair1/PHY/NR_UE_TRANSPORT/nr_dlsch_demodulation.c
+3
-4
No files found.
openair1/PHY/NR_UE_TRANSPORT/nr_dlsch_demodulation.c
View file @
48259329
...
...
@@ -1138,10 +1138,9 @@ void nr_dlsch_channel_level(uint32_t rx_size_symbol,
dl_ch128
+=
3
;
}
avg
[(
aatx
*
frame_parms
->
nb_antennas_rx
)
+
aarx
]
=
(((
int32_t
*
)
&
avg128D
)[
0
]
+
((
int32_t
*
)
&
avg128D
)[
1
]
+
((
int32_t
*
)
&
avg128D
)[
2
]
+
((
int32_t
*
)
&
avg128D
)[
3
])
/
y
;
int32_t
*
avg32
=
(
int32_t
*
)
&
avg128D
;
int64_t
avg64
=
((
int64_t
)
avg32
[
0
]
+
(
int64_t
)
avg32
[
1
]
+
(
int64_t
)
avg32
[
2
]
+
(
int64_t
)
avg32
[
3
])
/
y
;
avg
[(
aatx
*
frame_parms
->
nb_antennas_rx
)
+
aarx
]
=
(
int32_t
)
avg64
;
// printf("Channel level : %d\n",avg[(aatx<<1)+aarx]);
}
}
...
...
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