Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bool compare #11

Merged
merged 1 commit into from
Oct 5, 2022
Merged

Bool compare #11

merged 1 commit into from
Oct 5, 2022

Conversation

voertler
Copy link
Contributor

Fix bool compare warning due to missing template specialization

@basarts basarts self-requested a review September 7, 2022 15:50
@basarts
Copy link
Contributor

basarts commented Sep 8, 2022

This pull request includes #10 ; I propose to make them orthogonal.

This was referenced Sep 8, 2022
@voertler
Copy link
Contributor Author

@basarts updated pull requests

@@ -277,6 +277,12 @@ struct Context : boost::proto::callable_context<Context, boost::proto::null_cont
return new Constant(i, width, sign);
}

static result_type new_value(bool const& i) {
unsigned width = bitsize_traits<bool>::value;
Copy link
Contributor

Choose a reason for hiding this comment

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

bitsize_traits<bool>::value is defined as 1 in bitsize_traits.hpp, so we can probably optimize a little bit.

@SchulzSt SchulzSt merged commit b8fab64 into accellera-official:master Oct 5, 2022
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.

3 participants