bigint.c: add inline to limb_popcount()

Small helper called in a loop from mpz_popcount().

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2026-01-17 11:13:59 +09:00
parent 8d15caec14
commit a9f02eb6a4
+1 -1
View File
@@ -1957,7 +1957,7 @@ mpz_power_of_2_exp(mpz_t *x)
}
/* Count set bits in a limb */
static int
static inline int
limb_popcount(mp_limb x)
{
#if defined(__GNUC__) || __has_builtin(__builtin_popcount)