X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Flog2.c;h=08b27bcf8dc95aedfe70f17a1bdc45c3c8b045dc;hb=88200dc6daeeab5e7f402cefbd90ae1f126f8d7a;hp=da6cf8ec9f991bfb5ace50a901765e5c9924a02e;hpb=5b53087fa5a07ff89d34cf3bf3bc1b28809f05c2;p=libucw.git diff --git a/lib/log2.c b/lib/log2.c index da6cf8ec..08b27bcf 100644 --- a/lib/log2.c +++ b/lib/log2.c @@ -1,17 +1,16 @@ /* * Sherlock Library -- Binary Logarithm * - * (c) 1997 Martin Mares, + * (c) 1997 Martin Mares + * + * This software may be freely distributed and used according to the terms + * of the GNU Lesser General Public License. */ -#include - #include "lib/lib.h" -#undef log2 - int -log2(u32 x) +fls(u32 x) { uns l;