mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 14:30:36 +00:00
also return codeword unmodulated
This commit is contained in:
parent
5cf0ff2297
commit
05bd06ec0a
2 changed files with 8 additions and 7 deletions
|
|
@ -34,11 +34,12 @@ public:
|
|||
{
|
||||
return (msg << P) | par[msg];
|
||||
}
|
||||
void operator()(int8_t *code, int msg)
|
||||
int operator()(int8_t *code, int msg)
|
||||
{
|
||||
int cw = (*this)(msg);
|
||||
for (int i = 0; i < N; ++i)
|
||||
code[i] = 1 - 2 * ((cw >> i) & 1);
|
||||
return cw;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue