-
Notifications
You must be signed in to change notification settings - Fork 30
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
Simplify conversions around arithmetic operators #270
Conversation
57b6bcc
to
043cc82
Compare
6d79688
to
eb0eae1
Compare
eb0eae1
to
1c3c141
Compare
Codecov Report
@@ Coverage Diff @@
## master #270 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 10 10
Lines 1983 1956 -27
=========================================
- Hits 1983 1956 -27
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, at least less operators to implement. Does this have an effect on speed?
@@ -1785,7 +1775,7 @@ inline void udivrem_knuth( | |||
} // namespace internal | |||
|
|||
template <unsigned M, unsigned N> | |||
div_result<uint<M>, uint<N>> udivrem(const uint<M>& u, const uint<N>& v) noexcept | |||
constexpr div_result<uint<M>, uint<N>> udivrem(const uint<M>& u, const uint<N>& v) noexcept |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this constexpr
just missed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Maybe we never used it in constexpr context but now compiler is not happy as we removed one level of templates and maybe it is obviously wrong now.
No performance changes. In the end we define the same functions just is some other location. |
No description provided.