21 jun 2013 kl. 00.32 skrev Stefan Fuhrmann:

After some IRC discussion, we added r1495209 which
provides actual platform-independence.

With the messy code and extra htonl() call cost where not inlined, I doubt it's worth it. I'd just #if out the 4-byte acceleration as originally proposed (and apply the signedness fixes).

If you really want to keep the current code, I suggest moving the

    hash_value = hash_value * 0xd1f3da69 + val;

line outside the #if..#else..#endif section where it is currently duplicated.

Reply via email to