Skip to content

Switch constantIsGreaterEqual to use greaterEqual #95

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Scottbruceheart
Copy link
Collaborator

There isn't an advantage to using the previous algorithm.

@thecppzoo
Copy link
Owner

Please prove the claim there's no advantage to using the older mechanism, for all cases.

@Scottbruceheart
Copy link
Collaborator Author

I think there is an advantage for the msb_off version, though?

@Scottbruceheart
Copy link
Collaborator Author

I believe we also previously posted godbolt results for both that showed the general version of the constant compare (constantIsGreaterEqual) is more operations than the taocp impl.

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