pike.git / src / stuff.c

version» Context lines:

pike.git/src/stuff.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/      /* -  * $Id: stuff.c,v 1.14 2001/09/01 01:45:52 hubbe Exp $ +  * $Id: stuff.c,v 1.15 2001/09/01 09:39:18 hubbe Exp $    */   #include "global.h"   #include "stuff.h"   #include "stralloc.h"      /* Not all of these are primes, but they should be adequate */   PMOD_EXPORT INT32 hashprimes[32] =   {    31, /* ~ 2^0 = 1 */    31, /* ~ 2^1 = 2 */
pike.git/src/stuff.c:373:    4093640729UL, 4160749601UL, 4227858463UL, 4294967311UL    };    int shift=16;    unsigned long cmp=0x1fffff;    unsigned long x=num;    int y=0;       if(x<32)    {    static unsigned long lowprimes[32]={ -  3,3,3,3, +  1,1,2,3,    5,5,7,7,    11,11,11,11,    13,13,17,17,    17,17,19,19,    23,23,23,23,    29,29,29,29,    29,29,31,31    };    return lowprimes[x];    }