]> mj.ucw.cz Git - libucw.git/blobdiff - lib/log2.c
automatically add 0x80000000 to bucket-type specified on the command-line
[libucw.git] / lib / log2.c
index 2d2764e92c5f803cdea43fece8c58071b40f5b4f..08b27bcf8dc95aedfe70f17a1bdc45c3c8b045dc 100644 (file)
@@ -2,14 +2,15 @@
  *     Sherlock Library -- Binary Logarithm
  *
  *     (c) 1997 Martin Mares <mj@ucw.cz>
+ *
+ *     This software may be freely distributed and used according to the terms
+ *     of the GNU Lesser General Public License.
  */
 
 #include "lib/lib.h"
 
-#undef log2
-
 int
-log2(u32 x)
+fls(u32 x)
 {
   uns l;