pike.git / src / pike_search_engine.c

version» Context lines:

pike.git/src/pike_search_engine.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: pike_search_engine.c,v 1.12 2004/09/18 20:19:41 per Exp $ + || $Id: pike_search_engine.c,v 1.13 2006/07/05 19:15:35 mast Exp $   */      /*    * Written by Fredrik Hubinette (hubbe@lysator.liu.se)    */      #define HSHIFT 0   #include "pike_search_engine2.c"   #undef HSHIFT   
pike.git/src/pike_search_engine.c:100:          for(e=0;e<hsize;e++)    {    s->set[e]=0;    linklen[e]=0;    }    hsize--;       if(max > (ptrdiff_t)needlelen) max=needlelen; -  max=(max-sizeof(INT32)+1) & -sizeof(INT32); +  max=(max-sizeof(INT32)+1) & ~(sizeof(INT32) - 1);    if(max > MEMSEARCH_LINKS) max=MEMSEARCH_LINKS;       /* This assumes 512 buckets - Hubbe */    maxlinklength = my_sqrt(DO_NOT_WARN((unsigned int)max/2))+1;       ptr=& s->links[0];       q=(NCHAR *)needle;      #if PIKE_BYTEORDER == 4321 && NSHIFT == 0