andikleen / spooky-c

A C version of Bob Jenkins' spooky hash
38 stars 7 forks source link

Has it been ever fixed for Big-endian platforms? #8

Open barracuda156 opened 3 months ago

barracuda156 commented 3 months ago

The original assumed LE archs: http://burtleburtle.net/bob/hash/spooky.html I wonder if it has been fixed ever since.

andikleen commented 3 months ago

On Fri, Jun 21, 2024 at 05:14:19PM -0700, Sergey Fedorov wrote:

The original assumed LE archs: http://burtleburtle.net/bob/hash/spooky.html I wonder if it has been fixed ever since.

Not that I know of. But perhaps it just works assuming you don't want to interoperate with a LE producer.? After all hash functions may be tolerant of some permutations. Perhaps just run it through smhasher?

barracuda156 commented 3 months ago

Thank you. Yeah, upon reading a few references I came to a conclusion that it should just not be compared to LE value-wise. But algorithm itself should work fine.