| 69 | |
| 70 | template<typename B> |
| 71 | bool |
| 72 | Encoder_BCH<B>::is_codeword(const B* X_N) |
| 73 | { |
| 74 | this->__encode(X_N + n_rdncy, this->bb.data()); |
| 75 | |
| 76 | auto p = 0; |
| 77 | while (p < n_rdncy && (X_N[p] == this->bb[p])) |
| 78 | p++; |
| 79 | |
| 80 | return p == n_rdncy; |
| 81 | } |
| 82 | |
| 83 | // ==================================================================================== explicit template instantiation |
| 84 | #include "Tools/types.h" |