summaryrefslogtreecommitdiff
path: root/src/common/asm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/asm.h')
-rw-r--r--src/common/asm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/asm.h b/src/common/asm.h
index 3e52925..d8436b8 100644
--- a/src/common/asm.h
+++ b/src/common/asm.h
@@ -36,6 +36,12 @@ bool msb_32(uint32_t, unsigned int *);
/* Détermine l'indice du premier bit à 1, côté gauche. */
bool msb_64(uint64_t, unsigned int *);
+/* Détermine le nombre de bits à 1 dans une valeur de 32 bits. */
+unsigned int popcount_32(uint32_t v);
+
+/* Détermine le nombre de bits à 1 dans une valeur de 64 bits. */
+unsigned int popcount_64(uint64_t v);
+
#endif /* _COMMON_ASM_H */