X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Flog2.c;h=08b27bcf8dc95aedfe70f17a1bdc45c3c8b045dc;hb=b43635d10f884732f466de394596b31d3779ea7c;hp=2d2764e92c5f803cdea43fece8c58071b40f5b4f;hpb=1571781022499a9d0c32d249f89945d034d1cbff;p=libucw.git diff --git a/lib/log2.c b/lib/log2.c index 2d2764e9..08b27bcf 100644 --- a/lib/log2.c +++ b/lib/log2.c @@ -2,14 +2,15 @@ * Sherlock Library -- Binary Logarithm * * (c) 1997 Martin Mares + * + * 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;