| 58 | |
| 59 | template<typename B> |
| 60 | module::Encoder_BCH<B>* |
| 61 | Encoder_BCH ::build(const tools::BCH_polynomial_generator<B>& GF) const |
| 62 | { |
| 63 | if (this->type == "BCH") |
| 64 | { |
| 65 | if (this->simd_strategy == "INTER") |
| 66 | return new module::Encoder_BCH_inter<B>(this->K, this->N_cw, GF); |
| 67 | else if (this->simd_strategy == "INTRA") |
| 68 | throw spu::tools::cannot_allocate(__FILE__, __LINE__, __func__); |
| 69 | else |
| 70 | return new module::Encoder_BCH<B>(this->K, this->N_cw, GF); |
| 71 | } |
| 72 | |
| 73 | throw spu::tools::cannot_allocate(__FILE__, __LINE__, __func__); |
| 74 | } |
| 75 | |
| 76 | // ==================================================================================== explicit template instantiation |
| 77 | #include "Tools/types.h" |
nothing calls this directly
no outgoing calls
no test coverage detected