Skip to content

Instantly share code, notes, and snippets.

@normanmaurer
Created March 3, 2014 10:01
Show Gist options
  • Select an option

  • Save normanmaurer/9321837 to your computer and use it in GitHub Desktop.

Select an option

Save normanmaurer/9321837 to your computer and use it in GitHub Desktop.
int i = normalizeCapacity(8192);
/ i ist immer power of 2
int indexOfArray = getIndex(i);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment