mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
LibGfx: Fix build on NetBSD
NetBSD provides its own popcount() function.
This commit is contained in:
parent
947606afcf
commit
c99674c6ac
Notes:
sideshowbarker
2024-07-16 20:51:53 +09:00
Author: https://github.com/0-wiz-0 🔰 Commit: https://github.com/LadybirdBrowser/ladybird/commit/c99674c6ac Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/439 Issue: https://github.com/LadybirdBrowser/ladybird/issues/438 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}();
|
||||
|
||||
|
|
Loading…
Reference in a new issue