>that's one reason why you don't use the LSB of the multiplication result.
>instead, it is right-shifted so you get the middle bits, which are much
>more likely to be "random."
BTW: 2**32*(sqrt(5)-1)/2 is 2654435770 and not 2654425957UL that you are
using in your hashfn. So were does 2654425957UL came from?
Andrea Arcangeli
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/