| 9 | |
| 10 | template<typename B, typename R> |
| 11 | Decoder_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 | |
| 28 | template<typename B, typename R> |
| 29 | Decoder_BCH<B, R>* |
nothing calls this directly
no outgoing calls
no test coverage detected