:: commit 7a596fa9fe221b84c92e68460c3e5b1cc9d1470d

mintsuki <mintsuki@protonmail.com> — 2024-06-04 00:43

parents: 77143b153c

lib/elf: Use __builtin_popcountll instead of __builtin_popcountg

diff --git a/common/lib/elf.c b/common/lib/elf.c
index 0ab78770..e8089068 100644
--- a/common/lib/elf.c
+++ b/common/lib/elf.c
@@ -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_popcountg(entry) - 1;
+                relocs_i += __builtin_popcountll(entry) - 1;
             }
         }
     }
tab: 248 wrap: offon