Skip to content

Lookup tables#34

Open
krzysiek-b-y wants to merge 2 commits intomainfrom
lookup_tables
Open

Lookup tables#34
krzysiek-b-y wants to merge 2 commits intomainfrom
lookup_tables

Conversation

@krzysiek-b-y
Copy link
Copy Markdown
Contributor

No description provided.

static constexpr std::size_t Out_size = std::tuple_size_v<typename T::containter_type>;

// cannot be consteval due to use a non-const desstination port, but use compile time generated LUTs
template<typename TableT, size_t Out_size>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please be consistent std::size_t


consteval xmcu::look_up_tables::Input_row<std::uint32_t, N> operator()(std::uint32_t a_bit_idx) const
{
look_up_tables::Input_row<uint32_t, N> result {};
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

std::uint32_t

friend Out;
};

template<is_Input_table Table_type, typename T = typename Table_type::value_type>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure but typename after = is not needed with C++20 and newer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants