You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.
For constexpr this doesn't really matter, however, arithmetic shift is probably faster.
There is a subtle difference between v >> s and v / (1 << s):
One important consequence of the arithmetic right shift is that it will round negative
numbers towards negative infinity while a division is always rounding towards zero. So
a right shift on negative numbers is not identical to a division.
For constexpr this doesn't really matter, however, arithmetic shift is probably faster.
There is a subtle difference between
v >> s
andv / (1 << s)
:(taken from this discussion on the topic)
So the eps and cmath rounding algorithms will have to be adapted.
The text was updated successfully, but these errors were encountered: