mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 14:30:36 +00:00
made T a template parameter
This commit is contained in:
parent
f8b782033d
commit
77f27a8c5e
4 changed files with 7 additions and 7 deletions
|
|
@ -8,7 +8,7 @@ Copyright 2020 Ahmet Inan <inan@aicodix.de>
|
|||
|
||||
namespace CODE {
|
||||
|
||||
template <int N, int K>
|
||||
template <int N, int K, int T>
|
||||
class ShortBCHCodeDecoder
|
||||
{
|
||||
static const int P = N - K;
|
||||
|
|
@ -35,7 +35,7 @@ class ShortBCHCodeDecoder
|
|||
return sum;
|
||||
}
|
||||
public:
|
||||
ShortBCHCodeDecoder(int generator, int T)
|
||||
ShortBCHCodeDecoder(int generator)
|
||||
{
|
||||
for (int i = 0; i < W; ++i)
|
||||
par[i] = modgen(i << P, generator);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue