Fix mistake / outdated doc comment (#10521)

Unlike original reference code, Redis uses 64bit variable, so half the bits make it 32bit, not 16
This commit is contained in:
Bofang Liu 2022-04-04 20:35:49 +08:00 committed by GitHub
parent 047b609335
commit 8500ca4ae8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {