X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=hash.h;h=3e7854b12615e354ca4e518443833d187f0d91b1;hb=da28353c3fb45a8a6ee00d1133efd483c0ae684c;hp=acf17bb8e7f963b1ea5400a17d24819f319a8062;hpb=bdc7211e190482f0c17c109a0d90834a6611be1c;p=fio.git diff --git a/hash.h b/hash.h index acf17bb8..3e7854b1 100644 --- a/hash.h +++ b/hash.h @@ -13,6 +13,13 @@ * them can use shifts and additions instead of multiplications for * machines where multiplications are slow. */ + +#ifdef __WORDSIZE +#define BITS_PER_LONG __WORDSIZE +#else +#define BITS_PER_LONG 32 +#endif + #if BITS_PER_LONG == 32 /* 2^31 + 2^29 - 2^25 + 2^22 - 2^19 - 2^16 + 1 */ #define GOLDEN_RATIO_PRIME 0x9e370001UL