| 69 | |
| 70 | template<typename B> |
| 71 | void |
| 72 | Encoder_BCH_inter<B>::_encode(const B* U_K, B* X_N, const size_t /*frame_id*/) |
| 73 | { |
| 74 | // generate the parity bits |
| 75 | this->__encode(U_K, X_N); |
| 76 | |
| 77 | // copy the sys bits at the end of the codeword |
| 78 | constexpr int n_frames = mipp::N<B>(); |
| 79 | for (auto f = 0; f < n_frames; f++) |
| 80 | std::copy(U_K + (f + 0) * this->K, U_K + (f + 1) * this->K, X_N + (f + 0) * this->N + this->n_rdncy); |
| 81 | } |
| 82 | |
| 83 | // ==================================================================================== explicit template instantiation |
| 84 | #include "Tools/types.h" |