]> mj.ucw.cz Git - libucw.git/blobdiff - lib/log2.c
Added overflow-safe string functions allocating everything on the stack.
[libucw.git] / lib / log2.c
index a40ba069c02af64238a0bf02633d8fe61d792360..8fedaf6be67880d666305017a3941b79262f758e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *     Sherlock Library -- Binary Logarithm
+ *     UCW Library -- Binary Logarithm
  *
  *     (c) 1997 Martin Mares <mj@ucw.cz>
  *
@@ -9,10 +9,8 @@
 
 #include "lib/lib.h"
 
-#undef log2
-
 int
-log2(u32 x)
+fls(u32 x)
 {
   uns l;