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

Method light_encode

src/Module/Encoder/Polar/Encoder_polar.cpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53template<typename B>
54void
55Encoder_polar<B>::light_encode(B* bits)
56{
57 for (auto k = (this->N >> 1); k > 0; k >>= 1)
58 for (auto j = 0; j < this->N; j += 2 * k)
59 for (auto i = 0; i < k; i++)
60 bits[j + i] = bits[j + i] ^ bits[k + j + i];
61}
62
63template<typename B>
64void

Callers 2

_encodeMethod · 0.95
_encodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected