Last active
December 26, 2017 21:19
-
-
Save sigmadeltasoftware/224d1980adc127d6867ab4e2e88ee23c to your computer and use it in GitHub Desktop.
IAA_2: convoluted getNextSize
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static int getNextSize(int i) { | |
//multiply it by four and make sure it is positive | |
return i > 0 ? i << 2 : ~(i << 2) + 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment