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

Use __lzcnt as __builtin_clz in VS2008 or up #101

Closed
wants to merge 1 commit into from

Conversation

JayXon
Copy link
Contributor

@JayXon JayXon commented Apr 9, 2016

__lzcnt is documented here:
https://msdn.microsoft.com/en-us/library/bb384809.aspx
This improves speed of a VS2015 x64 build by more than 10%.

__lzcnt is documented here:
https://msdn.microsoft.com/en-us/library/bb384809.aspx
This improves speed of a VS2015 x64 build by more than 10%.
@JayXon
Copy link
Contributor Author

JayXon commented Apr 9, 2016

It turns out that lzcnt requires Haswell, and will be treated as bsr on older cpu, so I came up with another PR #102

@JayXon JayXon closed this Apr 9, 2016
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.

1 participant