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
Michael Black
OpenXG-RAN
Commits
451449e1
Commit
451449e1
authored
2 years ago
by
Roberto Louro Magueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid multiple shifts in UL channel compensation
parent
508d7d28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
+14
-10
No files found.
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
View file @
451449e1
...
...
@@ -1332,13 +1332,14 @@ __m128i nr_ulsch_comp_muli_sum(__m128i input_x,
//printf("det_%d = %d log2 =%d \n",k,(((int *)&det[0])[k]),log2_approx(((int *)&det[0])[k]));
}
xy_re_128
=
_mm_slli_epi32
(
xy_re_128
,
5
);
xy_re_128
=
_mm_srai_epi32
(
xy_re_128
,
log2_approx
(
sum_det
));
xy_re_128
=
_mm_slli_epi32
(
xy_re_128
,
5
);
xy_im_128
=
_mm_slli_epi32
(
xy_im_128
,
5
);
xy_im_128
=
_mm_srai_epi32
(
xy_im_128
,
log2_approx
(
sum_det
));
xy_im_128
=
_mm_slli_epi32
(
xy_im_128
,
5
);
int
b
=
log2_approx
(
sum_det
)
-
8
;
if
(
b
>
0
)
{
xy_re_128
=
_mm_srai_epi32
(
xy_re_128
,
b
);
xy_im_128
=
_mm_srai_epi32
(
xy_im_128
,
b
);
}
else
{
xy_re_128
=
_mm_slli_epi32
(
xy_re_128
,
-
b
);
xy_im_128
=
_mm_slli_epi32
(
xy_im_128
,
-
b
);
}
tmp_z0
=
_mm_unpacklo_epi32
(
xy_re_128
,
xy_im_128
);
//print_ints("unpack lo:",&tmp_z0[0]);
...
...
@@ -1762,9 +1763,12 @@ uint8_t nr_ulsch_zero_forcing_rx_2layers(NR_DL_FRAME_PARMS *frame_parms,
sum_det
+=
((((
int
*
)
&
determ_fin_128
[
0
])[
k
])
>>
2
);
}
mmtmpD2
=
_mm_slli_epi32
(
determ_fin_128
[
0
],
5
);
mmtmpD2
=
_mm_srai_epi32
(
mmtmpD2
,
log2_approx
(
sum_det
));
mmtmpD2
=
_mm_slli_epi32
(
mmtmpD2
,
5
);
int
b
=
log2_approx
(
sum_det
)
-
8
;
if
(
b
>
0
)
{
mmtmpD2
=
_mm_srai_epi32
(
determ_fin_128
[
0
],
b
);
}
else
{
mmtmpD2
=
_mm_slli_epi32
(
determ_fin_128
[
0
],
-
b
);
}
mmtmpD3
=
_mm_unpacklo_epi32
(
mmtmpD2
,
mmtmpD2
);
mmtmpD2
=
_mm_unpackhi_epi32
(
mmtmpD2
,
mmtmpD2
);
mmtmpD2
=
_mm_packs_epi32
(
mmtmpD3
,
mmtmpD2
);
...
...
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