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
promise
OpenXG-RAN
Commits
7d03e935
Commit
7d03e935
authored
6 years ago
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added crcmask and removed some warnings
parent
c5c3c325
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
openair1/PHY/CODING/nrPolar_tools/nr_polar_encoder.c
openair1/PHY/CODING/nrPolar_tools/nr_polar_encoder.c
+6
-7
No files found.
openair1/PHY/CODING/nrPolar_tools/nr_polar_encoder.c
View file @
7d03e935
...
...
@@ -346,22 +346,21 @@ void build_polar_tables(t_nrPolar_paramsPtr polarParams) {
}
}
void
polar_encoder_fast
(
void
*
in
,
void
*
out
,
void
polar_encoder_fast
(
int64_t
*
A
,
int64_t
*
D
,
int
bitlen
,
void
*
crcmask
,
int32_t
crcmask
,
t_nrPolar_paramsPtr
polarParams
)
{
AssertFatal
(
polarParams
->
K
>
32
,
"K = %d < 33, is not supported yet
\n
"
,
polarParams
->
K
);
AssertFatal
(
polarParams
->
K
<
65
,
"K = %d > 64, is not supported yet
\n
"
,
polarParams
->
K
);
uint64_t
A
,
B
,
Cprime
;
uint64_t
D
[
8
]
__attribute__
((
aligned
(
32
)));
uint64_t
B
,
Cprime
;
// append crc
B
=
A
|
(
crc24c
(
A
,
bitlen
)
<<
bitlen
);
B
=
*
A
|
((
crcmask
^
crc24c
(
A
,
bitlen
)
)
<<
bitlen
);
uint8_t
*
Bbyte
=
(
uint8_t
*
)
&
B
;
// for each byte of B, lookup in corresponding table for 64-bit word corresponding to tha byte and its position
// for each byte of B, lookup in corresponding table for 64-bit word corresponding to tha
t
byte and its position
Cprime
=
polarParams
->
cprime_tab
[
0
][
Bbyte
[
0
]]
|
polarParams
->
cprime_tab
[
1
][
Bbyte
[
1
]]
|
polarParams
->
cprime_tab
[
2
][
Bbyte
[
2
]]
|
...
...
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