The test code for CalcNumEntries is moved and is made better by adding
more test cases for it. This catches the bug where the current code
isn't accurate to 1% of the requested maxSize.
CalcNumEntries wasn't so accurate as it was leaving some room that
could've been utilized. The code is changed to check for more sizes
and is now accurate up to 0.1% of the requested maxSize.
The test code for CalcNumEntries is moved and is made better by adding more test cases for it. This catches the bug where the current code isn't accurate to 1% of the requested maxSize.
CalcNumEntries wasn't so accurate as it was leaving some room that could've been utilized. The code is changed to check for more sizes and is now accurate up to 0.1% of the requested maxSize.