There's a count_one_bits() function in acl.c that can be replaced with acall to pg_popcount64(). This isn't performance-critical code, but IMHO wemight as well use the centralized implementation.
-- nathan