We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently Oshrximm is not implemented, as it needs to be implemented with a division.
Oshrximm
One reason for the mismatch between division and shift is shown below:
-11 / (1 << 1) = -5 -11 >>> 1 = -6
Therefore it will always be more efficient to use unsigned division by a constant compared to signed division by a constant.
Maybe there is a more efficient implementation of this special case.
The text was updated successfully, but these errors were encountered:
The following might be the correct, efficient implementation of Oshrximm (x / (2 ^ y)):
x / (2 ^ y)
q = $signed(x) < 0 ? - ((-x) >> y) : x >> y;
Sorry, something went wrong.
9b52b6f
No branches or pull requests
Currently
Oshrximm
is not implemented, as it needs to be implemented with a division.One reason for the mismatch between division and shift is shown below:
Therefore it will always be more efficient to use unsigned division by a constant compared to signed division by a constant.
Maybe there is a more efficient implementation of this special case.
The text was updated successfully, but these errors were encountered: