LibGfx: Fix build on NetBSD

NetBSD provides its own popcount() function.

(cherry picked from commit c99674c6ac362508838efbc0ef58a9dfe8779890)
This commit is contained in:
Thomas Klausner 2024-07-05 17:14:59 +02:00 committed by Nico Weber
parent 272bc8a803
commit e81705c9a5

View file

@ -21,7 +21,7 @@ namespace Detail {
static auto constexpr coverage_lut = [] {
Array<u8, 256> coverage_lut {};
for (u32 sample = 0; sample <= 255; sample++)
coverage_lut[sample] = popcount(sample);
coverage_lut[sample] = AK::popcount(sample);
return coverage_lut;
}();