Adam Jackson <[email protected]> writes: > #define INITBUCKETS 64 > #define INITHASHSIZE 6 > -#define MAXHASHSIZE 11 > +#define MAXHASHSIZE 16 > > typedef struct _Resource { > struct _Resource *next; > @@ -683,6 +683,16 @@ HashResourceID(XID id, int numBits) > return ((int)(0x3FF & (id ^ (id>>10)))); > case 11: > return ((int)(0x7FF & (id ^ (id>>11)))); > + case 12: > + return ((int)(0xFFF & (id ^ (id>>12)))); > + case 13: > + return ((int)(0x1FFF & (id ^ (id>>13)))); > + case 14: > + return ((int)(0x3FFF & (id ^ (id>>14)))); > + case 15: > + return ((int)(0x7FFF & (id ^ (id>>15)))); > + case 16: > + return ((int)(0xFFFF & (id ^ (id>>16)))); > } > if (numBits >= 11) > return ((int)(0x7FF & (id ^ (id>>11))));
The last two lines look very suspicious now... -- -keith
signature.asc
Description: PGP signature
_______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel
