Skip to content

Conversation

@ChrisGrams
Copy link

Versions of Clang installed with MSVC define both clang and _MSC_VER. Since the intrin.h header is not included, the _BitScanReverse() function is not defined. However, instead of including intrin.h if _MSC_VER is defined, I chose to use Clang's __builtin_clz() function which is still available.

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