Branch: Tag:

1997-12-28

1997-12-28 09:30:05 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

now works better with NT _and_ Unix :)

Rev: src/configure.in:1.144
Rev: src/fd_control.c:1.10
Rev: src/gc.c:1.23
Rev: src/global.h:1.12
Rev: src/main.c:1.28
Rev: src/modules/Image/blit_layer_include.h:1.5
Rev: src/modules/Image/configure.in:1.5
Rev: src/modules/Image/font.c:1.23
Rev: src/modules/files/configure.in:1.36
Rev: src/modules/files/efuns.c:1.41
Rev: src/modules/system/configure.in:1.14
Rev: src/modules/system/system.c:1.33
Rev: src/pike_memory.c:1.3
Rev: src/signal_handler.c:1.16
Rev: src/stralloc.c:1.19
Rev: src/stuff.c:1.3
Rev: src/stuff.h:1.3

5:   \*/   #include "stuff.h"    + /* Not all of these are primes, but they should be adequate */ + INT32 hashprimes[32] = + { +  31, /* ~ 2^0 = 1 */ +  31, /* ~ 2^1 = 2 */ +  31, /* ~ 2^2 = 4 */ +  31, /* ~ 2^3 = 8 */ +  31, /* ~ 2^4 = 16 */ +  31, /* ~ 2^5 = 32 */ +  61, /* ~ 2^6 = 64 */ +  127, /* ~ 2^7 = 128 */ +  251, /* ~ 2^8 = 256 */ +  541, /* ~ 2^9 = 512 */ +  1151, /* ~ 2^10 = 1024 */ +  2111, /* ~ 2^11 = 2048 */ +  4327, /* ~ 2^12 = 4096 */ +  8803, /* ~ 2^13 = 8192 */ +  17903, /* ~ 2^14 = 16384 */ +  32321, /* ~ 2^15 = 32768 */ +  65599, /* ~ 2^16 = 65536 */ +  133153, /* ~ 2^17 = 131072 */ +  270001, /* ~ 2^18 = 264144 */ +  547453, /* ~ 2^19 = 524288 */ +  1109891, /* ~ 2^20 = 1048576 */ +  2000143, /* ~ 2^21 = 2097152 */ +  4561877, /* ~ 2^22 = 4194304 */ +  9248339, /* ~ 2^23 = 8388608 */ +  16777215, /* ~ 2^24 = 16777216 */ +  33554431, /* ~ 2^25 = 33554432 */ +  67108863, /* ~ 2^26 = 67108864 */ +  134217727, /* ~ 2^27 = 134217728 */ +  268435455, /* ~ 2^28 = 268435456 */ +  536870911, /* ~ 2^29 = 536870912 */ +  1073741823,/* ~ 2^30 = 1073741824 */ +  2147483647,/* ~ 2^31 = 2147483648 */ + }; +    /* same thing as (int)floor(log((double)x) / log(2.0)) */   /* Except a bit quicker :) (hopefully) */