Skip to content

Commit

Permalink
Build time optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
dancazarin committed Dec 3, 2019
1 parent 0818eec commit ee3c70f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions include/kfr/cometa.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,18 +803,15 @@ using indicesfor_t = cvalseq_t<size_t, sizeof...(List), 0>;
template <size_t group, size_t... indices, size_t N = group * sizeof...(indices)>
constexpr inline auto scale(csizes_t<indices...>) CMT_NOEXCEPT
{
return concat_lists<csizeseq_t<group, group * indices>...>{};
// return i[csizeseq_t<N>() / csize_t<group>()] * csize_t<group>() + csizeseq_t<N>() %
// csize_t<group>();
using Tlist = typename details::concat_impl<csizeseq_t<group, group * indices>...>::type;
return Tlist{};
}

template <size_t group, size_t... indices, size_t N = group * sizeof...(indices)>
constexpr inline auto scale() CMT_NOEXCEPT
{
return concat_lists<csizeseq_t<group, group * indices>...>{};
// return cconcat(csizeseq_t<group, group * indices>()...);
// return i[csizeseq_t<N>() / csize_t<group>()] * csize_t<group>() + csizeseq_t<N>() %
// csize_t<group>();
using Tlist = typename details::concat_impl<csizeseq_t<group, group * indices>...>::type;
return Tlist{};
}

namespace details
Expand Down

0 comments on commit ee3c70f

Please sign in to comment.