Skip to content

Conversation

@0xtaruhi
Copy link

This pr centralizes and unifies various bit counting implementations across the codebase by replacing them with a single call to Abc_WordCountOnes.

This function now utilizes compiler-specific intrinsics: __builtin_popcount for GCC/Clang and the equivalent intrinsic for MSVC. It also remains the old code as a fallback.

This pr may improve the code reuse and optimize performance.

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