Created
June 21, 2016 16:53
-
-
Save sdasgup3/167ff88042c2cf4e7253b1257affe42d to your computer and use it in GitHub Desktop.
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
void ensureAligned(int Alignment, HeapData* GlobalData) { | |
assert(isPowerOf2_32(Alignment) && Alignment > 0); | |
while (GlobalData->size() & (Alignment-1)) GlobalData->push_back(0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment