New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runtime/mpallocbits.go pallocBits.summarize function problem #39990
Comments
CC @mknyszek |
I think the function summarize has a bug, @mknyszek think? |
Why would max be 88? The max is 63. The high 31 zeroes of p1[4] and the low 32 zeroes of p1[5]. |
@randall77 , I think it should be The high 56 zeroes of p1[6] and the low 32 zeroes of p1[5].Where do I understand the deviation? |
The bits are ordered from low to high in each word, then in increasing word index. So the high 56 zeroes of p1[6] are adjacent to the low 4 zeroes of p1[7], not the low 32 zeroes p1[5]. This doesn't look like a bug to me. |
@randall77 Thank you for your answer, you're right. |
golang1.14.3 linux amd64
example
The text was updated successfully, but these errors were encountered: