]> mj.ucw.cz Git - libucw.git/blobdiff - lib/log2.c
Added block hash function.
[libucw.git] / lib / log2.c
index 3cd983357d573dd658c58dd99786c1c6099a9812..2d2764e92c5f803cdea43fece8c58071b40f5b4f 100644 (file)
@@ -1,19 +1,17 @@
 /*
  *     Sherlock Library -- Binary Logarithm
  *
 /*
  *     Sherlock Library -- Binary Logarithm
  *
- *     (c) 1997 Martin Mares, <mj@atrey.karlin.mff.cuni.cz>
+ *     (c) 1997 Martin Mares <mj@ucw.cz>
  */
 
  */
 
-#include <stdio.h>
-
-#include "lib.h"
+#include "lib/lib.h"
 
 #undef log2
 
 int
 
 #undef log2
 
 int
-log2(ulg x)
+log2(u32 x)
 {
 {
-  ulg l;
+  uns l;
 
   if (!x)
        return 0;
 
   if (!x)
        return 0;