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

Method is_codeword

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

__encodeMethod · 0.95

Tested by

no test coverage detected