#define FOLLY_INTRINSIC_CONSTEXPR const
#endif
-#include <folly/Portability.h>
-#include <folly/portability/Builtins.h>
-
-#include <folly/Assume.h>
-#include <folly/detail/BitsDetail.h>
-#include <folly/detail/BitIteratorDetail.h>
-#include <folly/Likely.h>
-
#include <cassert>
-#include <cstring>
#include <cinttypes>
+#include <cstdint>
+#include <cstring>
#include <iterator>
#include <limits>
#include <type_traits>
+
#include <boost/iterator/iterator_adaptor.hpp>
-#include <stdint.h>
+
+#include <folly/Assume.h>
+#include <folly/Likely.h>
+#include <folly/Portability.h>
+#include <folly/detail/BitIteratorDetail.h>
+#include <folly/portability/Builtins.h>
namespace folly {
sizeof(T) <= sizeof(unsigned int)),
size_t>::type
popcount(T x) {
- return size_t(detail::popcount(x));
+ return size_t(__builtin_popcount(x));
}
template <class T>
sizeof(T) <= sizeof(unsigned long long)),
size_t>::type
popcount(T x) {
- return size_t(detail::popcountll(x));
+ return size_t(__builtin_popcountll(x));
}
/**
}
};
-} // namespace detail
+} // namespace detail
// big* convert between native and big-endian representations
// little* convert between native and little-endian representations
}
}
-} // namespace folly
+} // namespace folly