MCPcopy Create free account
hub / github.com/VcDevel/std-simd / test_tuples_impl

Function test_tuples_impl

tests/math.cpp:54–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53template <class V, size_t N, size_t... Indexes, class... F>
54void test_tuples_impl(
55 std::index_sequence<Indexes...>,
56 const std::initializer_list<std::array<typename V::value_type, N>> &data,
57 F &&... fun_pack)
58{
59 auto it = data.begin();
60 for (; it + V::size() <= data.end(); it += V::size()) {
61 [](auto...) {}((fun_pack(test_tuples_gather<Indexes, V>(it)...), 0)...);
62 }
63 const auto remaining = data.size() % V::size();
64 if (remaining > 0) {
65 [](auto...) {}((fun_pack(test_tuples_gather_epilogue<Indexes, V>(
66 it, data.size() % V::size())...),
67 0)...);
68 }
69}
70
71template <class V, size_t N, class... F>
72void test_tuples(const std::initializer_list<std::array<typename V::value_type, N>> &data,

Callers

nothing calls this directly

Calls 4

sizeClass · 0.85
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected