Skip to content

Commit

Permalink
Rename libpopcount64() to popcnt64_bitwise()
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch committed Mar 17, 2024
1 parent 99214a4 commit 2ca88fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ int main(int argc, char* argv[])
std::cout << "Algorithm: " << algo << std::endl;

for (size_t i = 0; i < vect.size(); i++)
cnt += libpopcount64(vect[i]);
cnt += popcnt64_bitwise(vect[i]);

double seconds = get_seconds();
uint64_t total = benchmark(vect, iters);
Expand Down
2 changes: 1 addition & 1 deletion test/test1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void test(vector<uint8_t>& data, size_t i)
uint64_t bits_verify = 0;

for (; i < size; i++)
bits_verify += libpopcount64(data[i]);
bits_verify += popcnt64_bitwise(data[i]);

if (bits != bits_verify)
{
Expand Down
2 changes: 1 addition & 1 deletion test/test2.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void test(uint8_t* data,
uint64_t bits_verify = 0;

for (; i < size; i++)
bits_verify += libpopcount64(data[i]);
bits_verify += popcnt64_bitwise(data[i]);

if (bits != bits_verify)
{
Expand Down

0 comments on commit 2ca88fd

Please sign in to comment.