| 62 | |
| 63 | template<typename B> |
| 64 | void |
| 65 | Encoder_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 | |
| 77 | template<typename B> |
| 78 | void |
no outgoing calls
no test coverage detected