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

Method _encode

src/Module/Encoder/BCH/Encoder_BCH_inter.cpp:71–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70template<typename B>
71void
72Encoder_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"

Callers

nothing calls this directly

Calls 1

__encodeMethod · 0.95

Tested by

no test coverage detected