summaryrefslogtreecommitdiff
path: root/src/lib/clog2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/clog2.c')
-rw-r--r--src/lib/clog2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/clog2.c b/src/lib/clog2.c
index f7c6e59284..740b8d9f74 100644
--- a/src/lib/clog2.c
+++ b/src/lib/clog2.c
@@ -4,11 +4,11 @@
#include <console/console.h>
#endif
+#include <lib.h>
+
/* Assume 8 bits per byte */
#define CHAR_BIT 8
-unsigned long log2(unsigned long x);
-
unsigned long log2(unsigned long x)
{
// assume 8 bits per byte.