mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user