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

Function read_array

src/Module/Decoder/BCH/Fast/Decoder_BCH_fast.cpp:70–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68
69template<typename B, class A = std::allocator<B>>
70mipp::Reg<B>
71read_array(const std::vector<B, A>& array, mipp::Reg<B> r_idx, const mipp::Msk<mipp::N<B>()>& m_idx = true)
72{
73 B idx[mipp::N<B>()], val[mipp::N<B>()];
74
75 const auto r_zero = mipp::Reg<B>((B)0);
76 r_idx = mipp::blend(r_idx, r_zero, m_idx);
77 r_idx.store(idx);
78
79 for (auto j = 0; j < mipp::N<B>(); j++)
80 val[j] = array[idx[j]];
81
82 return mipp::Reg<B>(val);
83}
84
85template<typename B, class A = std::allocator<B>>
86void

Callers 1

_decodeMethod · 0.85

Calls 1

storeMethod · 0.45

Tested by

no test coverage detected