minecraft-server icon indicating copy to clipboard operation
minecraft-server copied to clipboard

Correct name for function iDontKnowWhatThisDoes()

Open nintendoeats opened this issue 4 years ago • 0 comments

This function returns a number with at least the same magnitude (positive or negative) as var0, but which is also divisible by var1. An appropriate name might be findNextLargestNumberEvenlyDivisibleBy or similar. It appears that the only place where this is used, it is being used to figure out how many 64-bit chunks are required to store some data. So for example, if you have 92 bits of data to store, it will return 128 (which the caller then divides by 64 to get 2).

nintendoeats avatar Jan 23 '22 14:01 nintendoeats