X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=hash.h;h=3e7854b12615e354ca4e518443833d187f0d91b1;hp=acf17bb8e7f963b1ea5400a17d24819f319a8062;hb=5921e80c5dfc9f96d2f21da6ae58f2b5d3a0b373;hpb=d0c70934dde93a8ee260a84c1bf69ff24484d486 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