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

Method __pre_encode

src/Module/Encoder/RSC_DB/Encoder_RSC_DB.cpp:225–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223
224template<typename B>
225void
226Encoder_RSC_DB<B>::__pre_encode(const B* U_K, int& end_state)
227{
228 auto state = 0;
229 for (auto i = 0; i < this->K; i += 2)
230 {
231 auto in = U_K[i] * 2 + U_K[i + 1];
232 state = next_state[in][state];
233 }
234 end_state = state;
235}
236
237template<typename B>
238void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected