Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
a2031d99
Commit
a2031d99
authored
4 years ago
by
Francesco Mani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trying to fix some cppcheck errors
parent
074a06ba
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
18 deletions
+16
-18
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
+14
-16
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+2
-2
No files found.
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
View file @
a2031d99
...
@@ -1082,7 +1082,7 @@ void nr_ulsch_detection_mrc(NR_DL_FRAME_PARMS *frame_parms,
...
@@ -1082,7 +1082,7 @@ void nr_ulsch_detection_mrc(NR_DL_FRAME_PARMS *frame_parms,
ul_ch_mag128b
[
0
][
i
]
=
_mm_adds_epi16
(
_mm_srai_epi16
(
ul_ch_mag128b
[
aa
][
i
],
1
),
_mm_srai_epi16
(
ul_ch_mag128b
[
aa
][
i
],
1
));
ul_ch_mag128b
[
0
][
i
]
=
_mm_adds_epi16
(
_mm_srai_epi16
(
ul_ch_mag128b
[
aa
][
i
],
1
),
_mm_srai_epi16
(
ul_ch_mag128b
[
aa
][
i
],
1
));
// rxdataF_comp128[0][i] = _mm_add_epi16(rxdataF_comp128_0[i],(*(__m128i *)&jitterc[0]));
// rxdataF_comp128[0][i] = _mm_add_epi16(rxdataF_comp128_0[i],(*(__m128i *)&jitterc[0]));
}
}
}
#elif defined(__arm__)
#elif defined(__arm__)
rxdataF_comp128_0
=
(
int16x8_t
*
)
&
rxdataF_comp
[
0
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
rxdataF_comp128_0
=
(
int16x8_t
*
)
&
rxdataF_comp
[
0
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
rxdataF_comp128_1
=
(
int16x8_t
*
)
&
rxdataF_comp
[
1
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
rxdataF_comp128_1
=
(
int16x8_t
*
)
&
rxdataF_comp
[
1
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
...
@@ -1098,10 +1098,8 @@ void nr_ulsch_detection_mrc(NR_DL_FRAME_PARMS *frame_parms,
...
@@ -1098,10 +1098,8 @@ void nr_ulsch_detection_mrc(NR_DL_FRAME_PARMS *frame_parms,
ul_ch_mag128_0b
[
i
]
=
vhaddq_s16
(
ul_ch_mag128_0b
[
i
],
ul_ch_mag128_1b
[
i
]);
ul_ch_mag128_0b
[
i
]
=
vhaddq_s16
(
ul_ch_mag128_0b
[
i
],
ul_ch_mag128_1b
[
i
]);
rxdataF_comp128_0
[
i
]
=
vqaddq_s16
(
rxdataF_comp128_0
[
i
],(
*
(
int16x8_t
*
)
&
jitterc
[
0
]));
rxdataF_comp128_0
[
i
]
=
vqaddq_s16
(
rxdataF_comp128_0
[
i
],(
*
(
int16x8_t
*
)
&
jitterc
[
0
]));
}
}
#endif
#endif
}
}
}
#if defined(__x86_64__) || defined(__i386__)
#if defined(__x86_64__) || defined(__i386__)
_mm_empty
();
_mm_empty
();
...
...
This diff is collapsed.
Click to expand it.
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
a2031d99
...
@@ -460,12 +460,13 @@ int main(int argc, char **argv)
...
@@ -460,12 +460,13 @@ int main(int argc, char **argv)
DS_TDL
,
DS_TDL
,
0
,
0
,
0
);
0
,
0
,
0
);
UE2gNB
->
max_Doppler
=
maxDoppler
;
if
(
UE2gNB
==
NULL
)
{
if
(
UE2gNB
==
NULL
)
{
printf
(
"Problem generating channel model. Exiting.
\n
"
);
printf
(
"Problem generating channel model. Exiting.
\n
"
);
exit
(
-
1
);
exit
(
-
1
);
}
}
UE2gNB
->
max_Doppler
=
maxDoppler
;
RC
.
gNB
=
(
PHY_VARS_gNB
**
)
malloc
(
sizeof
(
PHY_VARS_gNB
*
));
RC
.
gNB
=
(
PHY_VARS_gNB
**
)
malloc
(
sizeof
(
PHY_VARS_gNB
*
));
RC
.
gNB
[
0
]
=
malloc
(
sizeof
(
PHY_VARS_gNB
));
RC
.
gNB
[
0
]
=
malloc
(
sizeof
(
PHY_VARS_gNB
));
gNB
=
RC
.
gNB
[
0
];
gNB
=
RC
.
gNB
[
0
];
...
@@ -690,7 +691,6 @@ int main(int argc, char **argv)
...
@@ -690,7 +691,6 @@ int main(int argc, char **argv)
slot_offset
,
slot_offset
,
((
int16_t
*
)
&
gNB
->
common_vars
.
rxdata
[
0
][
slot_offset
])[
i
],
((
int16_t
*
)
&
gNB
->
common_vars
.
rxdata
[
0
][
slot_offset
])[
i
],
((
int16_t
*
)
&
gNB
->
common_vars
.
rxdata
[
0
][
slot_offset
])[
1
+
i
]);
((
int16_t
*
)
&
gNB
->
common_vars
.
rxdata
[
0
][
slot_offset
])[
1
+
i
]);
fclose
(
input_fd
);
}
}
for
(
SNR
=
snr0
;
SNR
<
snr1
;
SNR
+=
snr_step
)
{
for
(
SNR
=
snr0
;
SNR
<
snr1
;
SNR
+=
snr_step
)
{
...
...
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