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
6421754b
Commit
6421754b
authored
Jun 06, 2022
by
wu.jing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix OXGRF lib.c for arm
parent
01ec201f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
src/targets/ARCH/OXGRF/USERSPACE/LIB/oxgrf_lib.c
src/targets/ARCH/OXGRF/USERSPACE/LIB/oxgrf_lib.c
+8
-4
No files found.
src/targets/ARCH/OXGRF/USERSPACE/LIB/oxgrf_lib.c
View file @
6421754b
...
@@ -26,6 +26,10 @@
...
@@ -26,6 +26,10 @@
# include <immintrin.h>
# include <immintrin.h>
#endif
#endif
#ifdef __aarch64__
#include <arm_neon.h>
#endif
//! Number of OXGRF devices
//! Number of OXGRF devices
int
num_devices
=
0
;
int
num_devices
=
0
;
#ifdef __GNUC__
#ifdef __GNUC__
...
@@ -110,15 +114,15 @@ static int trx_oxgrf_write(openair0_device *device,openair0_timestamp timestamp,
...
@@ -110,15 +114,15 @@ static int trx_oxgrf_write(openair0_device *device,openair0_timestamp timestamp,
iq
+=
16
;
iq
+=
16
;
len
-=
16
;
len
-=
16
;
}
}
#el
se
#el
if defined(__arm__) || defined(__aarch64__)
__m128i
a
,
*
b
;
__m128i
a
,
*
b
;
int
len
=
nsamps
*
2
;
int
len
=
nsamps
*
2
;
int16_t
*
iq
=
buff
[
0
];
int16_t
*
iq
=
buff
[
0
];
while
(
len
>=
8
)
{
while
(
len
>=
8
)
{
a
=
*
(
__m128i
*
)
&
iq
[
0
];
a
=
*
(
int16x8_t
*
)
&
iq
[
0
];
b
=
(
__m128i
*
)
&
iq
[
0
];
b
=
(
int16x8_t
*
)
&
iq
[
0
];
*
b
=
_mm_slli_epi
16
(
a
,
4
);
*
b
=
vshlq_n_s
16
(
a
,
4
);
iq
+=
8
;
iq
+=
8
;
len
-=
8
;
len
-=
8
;
}
}
...
...
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