Thanks. I'm converting xxHash (
https://code.google.com/p/xxhash/) to FPC. My first attempt was to pass the original C code thru C2PAS32 (AstonShell) convertor but the code was a pure chaos for me - to many directives since it is the code for 32 and 64 bits and for little and big endian.
There are ports to other languages so I choosed C# 'cause it looked nice to me.
Luckily it gives me correct results now, I'll try to work on performance a little and I'll consider if it will be plain pascal or an object.
EDIT: I forgot to mention, I tried to Google for "xxHash delphi" - no luck. I also tried to find some documentation for xxHash but seems there's nothing around, only C code.