my pure pascal port of xxHash (32bit and 64bit). Get link Facebook X Pinterest Email Other Apps - July 17, 2015 my pure pascal port of xxHash (32bit and 64bit).https://github.com/Xor-el/xxHashPascal Get link Facebook X Pinterest Email Other Apps Comments Johan BontesJuly 21, 2015 at 7:01 AMUgochukwu Mmaduekwe2. You pass a string (or TBytes) like so:Str:= 'Hallo';Hash:= FastxxHash32Calc(Str[low(Str)],Length(Str)*SizeOf(Char), seed);The use of low(Str) is for mobile where strings can be zero-based.1. Wait for the push to my git, it has the sanity checks from the original xxHash in it.ReplyDeleteRepliesReplyUgochukwu MmaduekweJuly 21, 2015 at 9:58 AMthanks a lot.am almost through incorporating your suggestions and corrections so as to match the result from the original xxHash.I also figured out that pointer(str)^ works.ReplyDeleteRepliesReplyUgochukwu MmaduekweJuly 25, 2015 at 2:41 AMadded updateBoth xxHash (32 and 64 bit) now produces same results as the original C version.Special thanks to Johan Bontes for helping me out with benchmarking,various optimizations and corrections.ReplyDeleteRepliesReplyAdd commentLoad more... Post a Comment
Ugochukwu Mmaduekwe
ReplyDelete2. You pass a string (or TBytes) like so:
Str:= 'Hallo';
Hash:= FastxxHash32Calc(Str[low(Str)],Length(Str)*SizeOf(Char), seed);
The use of low(Str) is for mobile where strings can be zero-based.
1. Wait for the push to my git, it has the sanity checks from the original xxHash in it.
thanks a lot.
ReplyDeleteam almost through incorporating your suggestions and corrections so as to match the result from the original xxHash.
I also figured out that pointer(str)^ works.
added update
ReplyDeleteBoth xxHash (32 and 64 bit) now produces same results as the original C version.
Special thanks to Johan Bontes for helping me out with benchmarking,
various optimizations and corrections.