Good hashing algorithm for address list (memory)

I have a list of (64-bit) addresses representing the stack frame, and I want to hash them with a single 64-bit number to help identify those that were seen before. There are no more than 128 addresses.

My current algorithm computes the hash by iterating over the list, xor'ing each address into a hash and rotating the hash 11 bits per clock cycle.

Any best deals?

+6
algorithm hash
source share
3 answers

You may consider some kind of CRC .

Perhaps CRC64 .

+4
source share

There are a couple of good whole hash functions for 32 and 64 bits: http://www.concentric.net/~Ttwang/tech/inthash.htm

It also says: http://burtleburtle.net/bob/hash/evahash.html

+4
source share

If performance is not an issue, you can try a cryptographic hash - truncate the number of bytes you want.

0
source share

All Articles