This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fast implementation of Hamming weight
The target method: System.Reflection.Internal.BitArithmetic.CountBits Old implementation uses 24 arithmetic operations New fast implementation uses 12 arithmetic operations
- Loading branch information
1 parent
92cfd41
commit f357187
Showing
1 changed file
with
7 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters