LibGfx: Fix build on NetBSD

NetBSD provides its own popcount() function.
This commit is contained in:
Thomas Klausner 2024-07-05 17:14:59 +02:00 committed by Andrew Kaster
parent 947606afcf
commit c99674c6ac
Notes: sideshowbarker 2024-07-16 20:51:53 +09:00

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;
}();