MCPcopy Create free account
hub / github.com/aff3ct/aff3ct / __encode

Method __encode

src/Module/Encoder/RS/Encoder_RS.cpp:64–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62
63template<typename B>
64void
65Encoder_RS<B>::__encode(const S* U_K, S* par)
66{
67 std::fill(par, par + this->n_rdncy, (S)0);
68 for (auto i = this->K_rs - 1; i >= 0; --i)
69 {
70 const auto feedback = U_K[i] ^ par[this->n_rdncy - 1];
71 for (auto j = this->n_rdncy - 1; j > 0; --j)
72 par[j] = par[j - 1] ^ mt[feedback * this->n_rdncy + j];
73 par[0] = mt[feedback * this->n_rdncy];
74 }
75}
76
77template<typename B>
78void

Callers 2

_encodeMethod · 0.95
is_codewordMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected