Add popcount

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

No files matched your search

+1 -1
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()