Fix log2 function in <sys/mimiker.h> by using clz
MODIFY
include/sys/mimiker.h
include/sys/mimiker.h
#include <sys/param.h>
#include <sys/types.h>
-#define log2(x) (__builtin_ffs(x) - 1)
+#define log2(x) (CHAR_BIT * sizeof(unsigned long) - __builtin_clzl(x) - 1)
#define ffs(x) (size_t)(__builtin_ffs(x))
#define clz(x) (size_t)(__builtin_clz(x))
#define ctz(x) (size_t)(__builtin_ctz(x))

Fix log2 function in <sys/mimiker.h> by using clz (#584)