basic/util: rename u64log2 to log2u64

u64log2 was strangely named. We even have log2i and log2u right below
in that file.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2021-11-26 15:29:06 +01:00
parent e6f48be8d4
commit 58c34be864
5 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ void in_initrd_force(bool value);
int on_ac_power(void);
static inline unsigned u64log2(uint64_t n) {
static inline unsigned log2u64(uint64_t n) {
#if __SIZEOF_LONG_LONG__ == 8
return (n > 1) ? (unsigned) __builtin_clzll(n) ^ 63U : 0;
#else