Skip to content

This PR fixes a build issue with the version of Clang installed with MSVC.#65

Open
ChrisGrams wants to merge 1 commit intovurtun:masterfrom
ChrisGrams:fix-intrinsic
Open

This PR fixes a build issue with the version of Clang installed with MSVC.#65
ChrisGrams wants to merge 1 commit intovurtun:masterfrom
ChrisGrams:fix-intrinsic

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