Skip to content

Commit

Permalink
libtorrent: Use __builtin_popcountll for compatibility
Browse files Browse the repository at this point in the history
closes #48
  • Loading branch information
stickz committed Sep 29, 2024
1 parent f391442 commit 4446f26
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 109 deletions.
3 changes: 1 addition & 2 deletions libtorrent/rak/algorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include <algorithm>
#include <functional>
#include <limits>
#include <rak/libpopcnt.h>

namespace rak {

Expand All @@ -62,7 +61,7 @@ count_base(_InputIter1 __first1, _InputIter1 __last1,

template<typename T>
inline int popcount_wrapper(T t) {
return popcnt64(t);
return __builtin_popcountll(t);
}

}
Expand Down
107 changes: 0 additions & 107 deletions libtorrent/rak/libpopcnt.h

This file was deleted.

0 comments on commit 4446f26

Please sign in to comment.