Skip to content
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

Correct name for function iDontKnowWhatThisDoes() #16

Open
nintendoeats opened this issue Jan 23, 2022 · 0 comments
Open

Correct name for function iDontKnowWhatThisDoes() #16

nintendoeats opened this issue Jan 23, 2022 · 0 comments

Comments

@nintendoeats
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant