#include <SparseBitVector.h>
template<typename T, std::size_t SizeOfT>
struct SVF::PopulationCounter< T, SizeOfT >
Definition at line 127 of file SparseBitVector.h.
◆ count()
template<typename T , std::size_t SizeOfT>
Definition at line 129 of file SparseBitVector.h.
132 static_assert(SizeOfT <= 4,
"Not implemented!");
133 #if defined(__GNUC__)
134 return __builtin_popcount(
Value);
137 v = v - ((v >> 1) & 0x55555555);
138 v = (v & 0x33333333) + ((v >> 2) & 0x33333333);
139 return ((v + (v >> 4) & 0xF0F0F0F) * 0x1010101) >> 24;
llvm::Value Value
LLVM Basic classes.
The documentation for this struct was generated from the following file: