You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.
the line 52 of RegisterSet.java is else if (bits % Integer.SIZE == 0). in function getSizeForCount.
public static int getSizeForCount(int count) {
int bits = getBits(count);
if (bits == 0) {
return 1;
} else if (bits % Integer.SIZE == 0) {
return bits;
} else {
return bits + 1;
}
}
the parameter count is the bucket num, RegisterSet.REGISTER_SIZE is the number of bucket per Int, this value is 5. the code "int bits = getBits(count)" return the lenth of int array for bucket, I think the judgement of line 52 should be if(count%REGISTER_SIZE ==0), if the mode is zero, the value of bits is the length of int array for bucket.
The text was updated successfully, but these errors were encountered:
the line 52 of RegisterSet.java is else if (bits % Integer.SIZE == 0). in function getSizeForCount.
the parameter count is the bucket num, RegisterSet.REGISTER_SIZE is the number of bucket per Int, this value is 5. the code "int bits = getBits(count)" return the lenth of int array for bucket, I think the judgement of line 52 should be if(count%REGISTER_SIZE ==0), if the mode is zero, the value of bits is the length of int array for bucket.
The text was updated successfully, but these errors were encountered: