Closed aka-rider closed 7 years ago
I’d happily merge a pull request, but I don’t have time to investigate this myself.
Currently, I don't have a time to investigate it either.
Sorry, I was wrong. Reference implementation uses clz while yours uses 'bitLen'. That's where difference is.
There is an error in the following code
pow2Ceiling := bitLen(v | h.subBucketMask)
Leading zero base is missing. In this case it is constant 64
pow2Ceiling := 64 - bitLen(v | h.subBucketMask)