LLVM before 19 and gcc before 14 do not support builtin_popcountg().
Use const_bitcount<n> from sys/bitcount.h as a replacement in these
cases. This should still allow drm-kmod to build with size to be known
at compile-time.
Sponsored by: The FreeBSD Foundation
Fixes: 7cbc4d875971, 5e0a4859f28a
MFC after: 3 days
X-MFC: remove sys/modules/Makefile checks