Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
audiowmark
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
audiowmark
Commits
1eac837d
Commit
1eac837d
authored
Dec 19, 2018
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide convolution generators for order=14 and order=18.
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
24ace2b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
convcode.cc
src/convcode.cc
+8
-0
No files found.
src/convcode.cc
View file @
1eac837d
...
...
@@ -24,6 +24,14 @@ parity (unsigned int v)
constexpr
unsigned
int
rate
=
3
;
constexpr
unsigned
int
order
=
9
;
constexpr
auto
generators
=
std
::
array
<
unsigned
,
3
>
{
0557
,
0663
,
0711
};
/*
constexpr unsigned int order = 14;
constexpr auto generators = std::array<unsigned,3> { 021645, 035661, 037133 };
*/
/*
constexpr unsigned int order = 18;
constexpr auto generators = std::array<unsigned,3> { 0552137, 0614671, 0772233 };
*/
constexpr
unsigned
int
state_count
=
(
1
<<
order
);
constexpr
unsigned
int
state_mask
=
(
1
<<
order
)
-
1
;
...
...
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