]> mj.ucw.cz Git - libucw.git/blobdiff - lib/log2.c
obj_add_attr_ref() with an on-stack buffer is not advisable, better
[libucw.git] / lib / log2.c
index da6cf8ec9f991bfb5ace50a901765e5c9924a02e..08b27bcf8dc95aedfe70f17a1bdc45c3c8b045dc 100644 (file)
@@ -1,17 +1,16 @@
 /*
  *     Sherlock Library -- Binary Logarithm
  *
- *     (c) 1997 Martin Mares, <mj@atrey.karlin.mff.cuni.cz>
+ *     (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 <stdio.h>
-
 #include "lib/lib.h"
 
-#undef log2
-
 int
-log2(u32 x)
+fls(u32 x)
 {
   uns l;