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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
24594d99
Commit
24594d99
authored
Mar 28, 2022
by
Florian Kaltenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding case for 8 bit alignment in usrp rx
parent
98483050
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
+8
-3
No files found.
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
View file @
24594d99
...
...
@@ -405,7 +405,7 @@ static int trx_usrp_write(openair0_device *device,
if
((((
uintptr_t
)
buff
[
i
])
&
0x1F
)
==
0
)
{
buff_tx
[
i
][
j
]
=
_mm256_slli_epi16
(((
__m256i
*
)
buff
[
i
])[
j
],
4
);
}
else
else
{
((
__m128i
*
)
buff_tx
[
i
])[
2
*
j
]
=
_mm_slli_epi16
(((
__m128i
*
)
buff
[
i
])[
2
*
j
],
4
);
((
__m128i
*
)
buff_tx
[
i
])[
2
*
j
+
1
]
=
_mm_slli_epi16
(((
__m128i
*
)
buff
[
i
])[
2
*
j
+
1
],
4
);
...
...
@@ -696,10 +696,15 @@ static int trx_usrp_read(openair0_device *device, openair0_timestamp *ptimestamp
if
((((
uintptr_t
)
buff
[
i
])
&
0x1F
)
==
0
)
{
((
__m256i
*
)
buff
[
i
])[
j
]
=
_mm256_srai_epi16
(
buff_tmp
[
i
][
j
],
rxshift
);
}
else
{
}
else
if
((((
uintptr_t
)
buff
[
i
])
&
0x0F
)
==
0
)
{
((
__m128i
*
)
buff
[
i
])[
2
*
j
]
=
_mm_srai_epi16
(((
__m128i
*
)
buff_tmp
[
i
])[
2
*
j
],
rxshift
);
((
__m128i
*
)
buff
[
i
])[
2
*
j
+
1
]
=
_mm_srai_epi16
(((
__m128i
*
)
buff_tmp
[
i
])[
2
*
j
+
1
],
rxshift
);
}
}
else
{
((
__m64
*
)
buff
[
i
])[
4
*
j
]
=
_mm_srai_pi16
(((
__m64
*
)
buff_tmp
[
i
])[
4
*
j
],
rxshift
);
((
__m64
*
)
buff
[
i
])[
4
*
j
+
1
]
=
_mm_srai_pi16
(((
__m64
*
)
buff_tmp
[
i
])[
4
*
j
+
1
],
rxshift
);
((
__m64
*
)
buff
[
i
])[
4
*
j
+
2
]
=
_mm_srai_pi16
(((
__m64
*
)
buff_tmp
[
i
])[
4
*
j
+
2
],
rxshift
);
((
__m64
*
)
buff
[
i
])[
4
*
j
+
3
]
=
_mm_srai_pi16
(((
__m64
*
)
buff_tmp
[
i
])[
4
*
j
+
3
],
rxshift
);
}
#else
((
__m128i
*
)
buff
[
i
])[
j
]
=
_mm_srai_epi16
(
buff_tmp
[
i
][
j
],
rxshift
);
...
...
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