Unverified Commit 8500ca4a authored by Bofang Liu's avatar Bofang Liu Committed by GitHub
Browse files

Fix mistake / outdated doc comment (#10521)

Unlike original reference code, Redis uses 64bit variable, so half the bits make it 32bit, not 16
parent 047b6093
......@@ -46,7 +46,7 @@
/* Interleave lower bits of x and y, so the bits of x
* are in the even positions and bits from y in the odd;
* x and y must initially be less than 2**32 (65536).
* x and y must initially be less than 2**32 (4294967296).
* From: https://graphics.stanford.edu/~seander/bithacks.html#InterleaveBMN
*/
static inline uint64_t interleave64(uint32_t xlo, uint32_t ylo) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment