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
c8c158e0
Commit
c8c158e0
authored
Nov 21, 2022
by
laurent
Committed by
Robert Schmidt
Dec 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gcc ubsan detected warnings
parent
e97bf2b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
32 deletions
+32
-32
openair1/PHY/LTE_ESTIMATION/lte_eNB_measurements.c
openair1/PHY/LTE_ESTIMATION/lte_eNB_measurements.c
+1
-1
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
+31
-31
No files found.
openair1/PHY/LTE_ESTIMATION/lte_eNB_measurements.c
View file @
c8c158e0
...
...
@@ -107,7 +107,7 @@ void lte_eNB_I0_measurements(PHY_VARS_eNB *eNB,
n0_power_tot
=
0
;
int
offset0
=
(
frame_parms
->
first_carrier_offset
+
(
rb
*
12
))
%
frame_parms
->
ofdm_symbol_size
;
if
((
rb_mask
[
rb
>>
5
]
&
(
1
<<
(
rb
&
31
)))
==
0
)
{
// check that rb was not used in this subframe
if
((
rb_mask
[
rb
>>
5
]
&
(
1
U
<<
(
rb
&
31
)))
==
0
)
{
// check that rb was not used in this subframe
nb_rb
++
;
for
(
aarx
=
0
;
aarx
<
frame_parms
->
nb_antennas_rx
;
aarx
++
)
{
measurements
->
n0_subband_power
[
aarx
][
rb
]
=
0
;
...
...
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
View file @
c8c158e0
...
...
@@ -725,16 +725,16 @@ int allocate_REs_in_RB_no_pilots_QPSK_tm2(PHY_VARS_eNB* phy_vars_eNB,
(((
uint32_t
)
x0p
[
2
])
<<
2
)
|
(((
uint32_t
)
x0p
[
3
])
<<
3
);
txF0
[
0
]
=
qam_table4_0
[
qam4_table_offset
]
;
txF1
[
0
]
=
qam_table4_1
[
qam4_table_offset
]
;
memcpy
(
txF0
,
&
qam_table4_0
[
qam4_table_offset
],
sizeof
(
*
txF0
))
;
memcpy
(
txF1
,
&
qam_table4_1
[
qam4_table_offset
],
sizeof
(
*
txF1
))
;
x0p
+=
4
;
qam4_table_offset
=
(((
uint32_t
)
x0p
[
0
]))
|
(((
uint32_t
)
x0p
[
1
])
<<
1
)
|
(((
uint32_t
)
x0p
[
2
])
<<
2
)
|
(((
uint32_t
)
x0p
[
3
])
<<
3
);
txF0
[
1
]
=
qam_table4_0
[
qam4_table_offset
]
;
txF1
[
1
]
=
qam_table4_1
[
qam4_table_offset
]
;
(((
uint32_t
)
x0p
[
1
])
<<
1
)
|
(((
uint32_t
)
x0p
[
2
])
<<
2
)
|
(((
uint32_t
)
x0p
[
3
])
<<
3
);
memcpy
(
txF0
+
1
,
&
qam_table4_0
[
qam4_table_offset
],
sizeof
(
*
txF0
))
;
memcpy
(
txF1
+
1
,
&
qam_table4_1
[
qam4_table_offset
],
sizeof
(
*
txF1
))
;
x0p
+=
4
;
qam4_table_offset
=
(((
uint32_t
)
x0p
[
0
]))
|
...
...
@@ -742,8 +742,8 @@ int allocate_REs_in_RB_no_pilots_QPSK_tm2(PHY_VARS_eNB* phy_vars_eNB,
(((
uint32_t
)
x0p
[
2
])
<<
2
)
|
(((
uint32_t
)
x0p
[
3
])
<<
3
);
txF0
[
2
]
=
qam_table4_0
[
qam4_table_offset
]
;
txF1
[
2
]
=
qam_table4_1
[
qam4_table_offset
]
;
memcpy
(
txF0
+
2
,
&
qam_table4_0
[
qam4_table_offset
],
sizeof
(
*
txF0
))
;
memcpy
(
txF1
+
2
,
&
qam_table4_1
[
qam4_table_offset
],
sizeof
(
*
txF1
))
;
if
(
skip_half
==
0
)
{
if
(
skip_dc
>
0
)
{
...
...
@@ -757,23 +757,23 @@ int allocate_REs_in_RB_no_pilots_QPSK_tm2(PHY_VARS_eNB* phy_vars_eNB,
(((
uint32_t
)
x0p
[
2
])
<<
2
)
|
(((
uint32_t
)
x0p
[
3
])
<<
3
);
txF0
[
3
]
=
qam_table4_0
[
qam4_table_offset
]
;
txF1
[
3
]
=
qam_table4_1
[
qam4_table_offset
]
;
memcpy
(
txF0
+
3
,
&
qam_table4_0
[
qam4_table_offset
],
sizeof
(
*
txF0
))
;
memcpy
(
txF1
+
3
,
&
qam_table4_1
[
qam4_table_offset
],
sizeof
(
*
txF1
))
;
x0p
+=
4
;
qam4_table_offset
=
(((
uint32_t
)
x0p
[
0
]))
|
(((
uint32_t
)
x0p
[
1
])
<<
1
)
|
(((
uint32_t
)
x0p
[
2
])
<<
2
)
|
(((
uint32_t
)
x0p
[
3
])
<<
3
);
txF0
[
4
]
=
qam_table4_0
[
qam4_table_offset
]
;
txF1
[
4
]
=
qam_table4_1
[
qam4_table_offset
]
;
(((
uint32_t
)
x0p
[
1
])
<<
1
)
|
(((
uint32_t
)
x0p
[
2
])
<<
2
)
|
(((
uint32_t
)
x0p
[
3
])
<<
3
);
memcpy
(
txF0
+
4
,
&
qam_table4_0
[
qam4_table_offset
],
sizeof
(
*
txF0
))
;
memcpy
(
txF1
+
4
,
&
qam_table4_1
[
qam4_table_offset
],
sizeof
(
*
txF1
))
;
x0p
+=
4
;
qam4_table_offset
=
(((
uint32_t
)
x0p
[
0
]))
|
(((
uint32_t
)
x0p
[
1
])
<<
1
)
|
(((
uint32_t
)
x0p
[
2
])
<<
2
)
|
(((
uint32_t
)
x0p
[
3
])
<<
3
);
txF0
[
5
]
=
qam_table4_0
[
qam4_table_offset
]
;
txF1
[
5
]
=
qam_table4_1
[
qam4_table_offset
]
;
memcpy
(
txF0
+
5
,
&
qam_table4_0
[
qam4_table_offset
],
sizeof
(
*
txF0
))
;
memcpy
(
txF1
+
5
,
&
qam_table4_1
[
qam4_table_offset
],
sizeof
(
*
txF1
))
;
}
if
(
skip_half
!=
0
)
{
...
...
@@ -3025,20 +3025,20 @@ inline int check_skip_dc(int rb,LTE_DL_FRAME_PARMS *frame_parms) {
}
uint64_t
qam4_tm2_p2_0
[
8
][
16
];
uint64_t
qam4_tm2_p2_1
[
8
][
16
];
uint64_t
qam4_tm2_p2_b0
[
8
][
4
][
16
];
uint64_t
qam4_tm2_p2_b1
[
8
][
4
][
16
];
uint64_t
qam4_tm2_p2_0
[
8
][
16
]
__attribute__
((
aligned
(
32
)))
;
uint64_t
qam4_tm2_p2_1
[
8
][
16
]
__attribute__
((
aligned
(
32
)))
;
uint64_t
qam4_tm2_p2_b0
[
8
][
4
][
16
]
__attribute__
((
aligned
(
32
)))
;
uint64_t
qam4_tm2_p2_b1
[
8
][
4
][
16
]
__attribute__
((
aligned
(
32
)))
;
uint64_t
qam16_tm2_p2_0
[
8
][
256
];
uint64_t
qam16_tm2_p2_1
[
8
][
256
];
uint64_t
qam16_tm2_p2_b0
[
8
][
4
][
256
];
uint64_t
qam16_tm2_p2_b1
[
8
][
4
][
256
];
uint64_t
qam16_tm2_p2_0
[
8
][
256
]
__attribute__
((
aligned
(
32
)))
;
uint64_t
qam16_tm2_p2_1
[
8
][
256
]
__attribute__
((
aligned
(
32
)))
;
uint64_t
qam16_tm2_p2_b0
[
8
][
4
][
256
]
__attribute__
((
aligned
(
32
)))
;
uint64_t
qam16_tm2_p2_b1
[
8
][
4
][
256
]
__attribute__
((
aligned
(
32
)))
;
uint64_t
qam64_tm2_p2_0
[
8
][
4096
];
uint64_t
qam64_tm2_p2_1
[
8
][
4096
];
uint64_t
qam64_tm2_p2_b0
[
8
][
4
][
4096
];
uint64_t
qam64_tm2_p2_b1
[
8
][
4
][
4096
];
uint64_t
qam64_tm2_p2_0
[
8
][
4096
]
__attribute__
((
aligned
(
32
)))
;
uint64_t
qam64_tm2_p2_1
[
8
][
4096
]
__attribute__
((
aligned
(
32
)))
;
uint64_t
qam64_tm2_p2_b0
[
8
][
4
][
4096
]
__attribute__
((
aligned
(
32
)))
;
uint64_t
qam64_tm2_p2_b1
[
8
][
4
][
4096
]
__attribute__
((
aligned
(
32
)))
;
void
init_modulation_LUT_qam4_tm2_p2
()
{
...
...
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