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
91762e7a
Commit
91762e7a
authored
Mar 06, 2024
by
mir
Committed by
sagar arora
May 22, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove old OAI implementation
parent
f702080a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
30 deletions
+10
-30
openair1/PHY/CODING/nrPolar_tools/nr_polar_defs.h
openair1/PHY/CODING/nrPolar_tools/nr_polar_defs.h
+1
-3
openair1/PHY/CODING/nrPolar_tools/nr_polar_encoder.c
openair1/PHY/CODING/nrPolar_tools/nr_polar_encoder.c
+1
-2
openair1/PHY/CODING/nrPolar_tools/nr_polar_procedures.c
openair1/PHY/CODING/nrPolar_tools/nr_polar_procedures.c
+8
-25
No files found.
openair1/PHY/CODING/nrPolar_tools/nr_polar_defs.h
View file @
91762e7a
...
...
@@ -282,9 +282,7 @@ void nr_polar_generate_u(uint64_t *u,
uint16_t
N
,
uint8_t
n_pc
);
void
nr_polar_uxG
(
uint64_t
*
D
,
const
uint64_t
*
u
,
const
fourDimArray_t
*
G_N_tab
,
uint16_t
N
);
void
nr_polar_uxG2
(
uint8_t
*
D
,
uint8_t
const
*
u
,
size_t
N
);
void
nr_polar_uxG
(
uint8_t
const
*
u
,
size_t
N
,
uint8_t
*
D
);
void
nr_polar_info_extraction_from_u
(
uint64_t
*
Cprime
,
const
uint8_t
*
u
,
...
...
openair1/PHY/CODING/nrPolar_tools/nr_polar_encoder.c
View file @
91762e7a
...
...
@@ -689,8 +689,7 @@ void polar_encoder_fast(uint64_t *A,
#endif
uint64_t
D
[
8
];
// nr_polar_uxG(D, u, polarParams->G_N_tab, polarParams->N);
nr_polar_uxG2
((
uint8_t
*
)
D
,
(
uint8_t
*
)
u
,
polarParams
->
N
);
nr_polar_uxG
((
uint8_t
*
)
u
,
polarParams
->
N
,
(
uint8_t
*
)
D
);
#ifdef POLAR_CODING_DEBUG
printf
(
"d: "
);
...
...
openair1/PHY/CODING/nrPolar_tools/nr_polar_procedures.c
View file @
91762e7a
...
...
@@ -138,8 +138,8 @@ void encode_packed_byte(uint8_t* in_out)
static
void
polar_encode_bits
(
uint8_t
*
in_out
,
size_t
N
)
{
in
t
num_bytes_per_block
=
N
>>
3
;
for
(
in
t
i
=
0
;
i
<
num_bytes_per_block
;
++
i
){
size_t
cons
t
num_bytes_per_block
=
N
>>
3
;
for
(
size_
t
i
=
0
;
i
<
num_bytes_per_block
;
++
i
){
encode_packed_byte
(
&
in_out
[
i
]);
}
}
...
...
@@ -156,12 +156,12 @@ uint32_t log2_floor(uint32_t x)
static
void
polar_encode_bytes
(
uint8_t
*
in_out
,
size_t
N
)
{
in
t
brnch_sz
=
1
;
in
t
n_brnch
=
N
>>
4
;
size_
t
brnch_sz
=
1
;
size_
t
n_brnch
=
N
>>
4
;
size_t
const
blck_pwr
=
log2_floor
(
N
);
for
(
in
t
stage
=
3
;
stage
<
blck_pwr
;
++
stage
)
{
for
(
in
t
brnch
=
0
;
brnch
<
n_brnch
;
++
brnch
)
{
for
(
in
t
byte
=
0
;
byte
<
brnch_sz
;
++
byte
){
for
(
size_
t
stage
=
3
;
stage
<
blck_pwr
;
++
stage
)
{
for
(
size_
t
brnch
=
0
;
brnch
<
n_brnch
;
++
brnch
)
{
for
(
size_
t
byte
=
0
;
byte
<
brnch_sz
;
++
byte
){
size_t
const
dst
=
2
*
brnch_sz
*
brnch
+
byte
;
in_out
[
dst
]
^=
in_out
[
dst
+
brnch_sz
];
}
...
...
@@ -171,7 +171,7 @@ void polar_encode_bytes(uint8_t* in_out, size_t N)
}
}
void
nr_polar_uxG
2
(
uint8_t
*
D2
,
uint8_t
const
*
u
,
size_t
N
)
void
nr_polar_uxG
(
uint8_t
const
*
u
,
size_t
N
,
uint8_t
*
D2
)
{
uint8_t
tmp
[
N
/
8
];
for
(
int
i
=
0
;
i
<
N
/
8
;
++
i
)
...
...
@@ -186,23 +186,6 @@ void nr_polar_uxG2(uint8_t* D2, uint8_t const* u, size_t N)
polar_encode_bytes
(
D2
,
N
);
}
void
nr_polar_uxG
(
uint64_t
*
D
,
const
uint64_t
*
u
,
const
fourDimArray_t
*
G_N_tab
,
uint16_t
N
)
{
const
int
N64
=
N
/
64
;
cast2Darray
(
g_n
,
uint64_t
,
G_N_tab
);
for
(
int
n
=
0
;
n
<
N
;
n
++
)
{
const
uint64_t
*
Gn
=
g_n
[
N
-
1
-
n
];
int
n_ones
=
0
;
for
(
int
a
=
0
;
a
<
N64
;
a
++
)
n_ones
+=
count_bits_set
(
u
[
a
]
&
Gn
[
a
]);
int
n1
=
n
/
64
;
int
n2
=
n
-
(
n1
*
64
);
D
[
n1
]
|=
((
uint64_t
)
n_ones
&
1
)
<<
n2
;
}
}
void
nr_polar_bit_insertion
(
uint8_t
*
input
,
uint8_t
*
output
,
uint16_t
N
,
...
...
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