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

Method Decoder_BCH

src/Module/Decoder/BCH/Decoder_BCH.cpp:11–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10template<typename B, typename R>
11Decoder_BCH<B, R>::Decoder_BCH(const int K, const int N, const int t)
12 : Decoder_SIHO<B, R>(K, N)
13 , t(t)
14 , N_p2_1(spu::tools::next_power_of_2(N) - 1)
15 , last_is_codeword(this->n_frames)
16{
17 const std::string name = "Decoder_BCH";
18 this->set_name(name);
19
20 if (K <= 3)
21 {
22 std::stringstream message;
23 message << "'K' has to be greater than 3 ('K' = " << K << ").";
24 throw spu::tools::invalid_argument(__FILE__, __LINE__, __func__, message.str());
25 }
26}
27
28template<typename B, typename R>
29Decoder_BCH<B, R>*

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected