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

chore: __builtin_popcount to replace BitCount8 #309

Merged

Conversation

coastalwhite
Copy link
Contributor

This replaces all occurrences of the BitCount8 static array with the __builtin_popcount. It is a rather simple and small PR.

Fixes #308.

This replaces all occurrences of the `BitCount8` static array with the
`__builtin_popcount`. It is a rather simple and small PR.

Fixes berkeley-abc#308.
@alanminko
Copy link
Contributor

Unfortunately there is a problem with the Windows build:
D:\a\abc\abc\src\misc\util\utilTruth.h(132,54): error C3861: '__builtin_popcount': identifier not found [D:\a\abc\abc\abclib.vcxproj]

@coastalwhite
Copy link
Contributor Author

I can use the __popcnt built-in on MSVC. Will update later today.

@coastalwhite
Copy link
Contributor Author

I have added the __builtin_popcount intrinsic for MSVC.

@alanminko
Copy link
Contributor

Thank you for the change set!

@alanminko alanminko merged commit a06dde4 into berkeley-abc:master Aug 1, 2024
7 of 9 checks passed
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.

Use popcount intrinsics in exorBits.cpp
2 participants