bit_util: Guarantee popcount's presence.

Implement popcount generically, so that we can rely on it being present.
This commit is contained in:
David Goldblatt
2020-12-02 10:04:32 -08:00
committed by David Goldblatt
parent d9f7e6c668
commit 734e72ce8f
3 changed files with 167 additions and 4 deletions

View File

@@ -1594,6 +1594,7 @@ JE_COMPILABLE([a program using __builtin_popcountl], [
if test "x${je_cv_gcc_builtin_popcountl}" = "xyes" ; then
AC_DEFINE([JEMALLOC_INTERNAL_POPCOUNT], [__builtin_popcount])
AC_DEFINE([JEMALLOC_INTERNAL_POPCOUNTL], [__builtin_popcountl])
AC_DEFINE([JEMALLOC_INTERNAL_POPCOUNTLL], [__builtin_popcountll])
fi
AC_ARG_WITH([lg_quantum],