Add popcount

This commit is contained in:
Peter Dimov
2020-12-29 01:06:22 +02:00
parent dc8aa5eb39
commit 409c809cd8
4 changed files with 84 additions and 3 deletions

View File

@@ -12,7 +12,7 @@
template<class T> void test_single_bit( T x )
{
// BOOST_TEST_EQ( boost::core::has_single_bit( x ), boost::core::popcount( x ) == 1 );
BOOST_TEST_EQ( boost::core::has_single_bit( x ), boost::core::popcount( x ) == 1 );
}
int main()