X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fhashfunc.c;h=f51c84e8ec42b67f190a0a95c630e1ad7cfbdf4b;hb=18fcca1138ad1b480854cb1e64fa10a84660dcba;hp=af791908b07774595f60a8d738f5a7b3cac77415;hpb=9f83781a1e13f58813de1dddf239984097169559;p=libucw.git diff --git a/lib/hashfunc.c b/lib/hashfunc.c index af791908..f51c84e8 100644 --- a/lib/hashfunc.c +++ b/lib/hashfunc.c @@ -1,11 +1,14 @@ /* - * Hyper-super-meta-alt-control-shift extra fast str_len() and hash_*() - * routines + * UCW Library -- Hyper-super-meta-alt-control-shift extra fast + * str_len() and hash_*() routines * * It is always at least as fast as the classical strlen() routine and for * strings longer than 100 characters, it is substantially faster. * * (c) 2002, Robert Spalek + * + * This software may be freely distributed and used according to the terms + * of the GNU Lesser General Public License. */ #include "lib/lib.h" @@ -42,7 +45,7 @@ str_len_uns(uns x) uns a, i; byte *bytes; a = ~x & (x - sub) & and; - /* + /* * x_2 = x - 0x01010101; * x_3 = ~x & x_2; * a = x_3 & 0x80808080;