lib/elf: Use __builtin_popcountg instead of __builtin_popcount

This commit is contained in:
mintsuki 2024-06-04 02:31:01 +02:00
parent 3ce1415a3a
commit 77143b153c

View File

@ -386,7 +386,7 @@ static bool elf64_apply_relocations(uint8_t *elf, struct elf64_hdr *hdr, void *b
if ((entry & 1) == 0) {
relocs_i++;
} else {
relocs_i += __builtin_popcount(entry) - 1;
relocs_i += __builtin_popcountg(entry) - 1;
}
}
}