llvm /
scudo /
6e93a253e2e192c41b5f19ae18029e7843e9771d [scudo] Improve the uses of roundUpTo/roundDownTo/isAligned
The implementations of those functions require the rounding target to be
power-of-two. It's better to add a debugging check to avoid misuse.
Besides, add a general verion of those three to accommadate non
power-of-two cases.
Also change the name to roundUp/roundDown/isAligned
Reviewed By: cferris, cryptoad
Differential Revision: https://reviews.llvm.org/D142658
GitOrigin-RevId: a9269773eb94ddd36ec3e624740013ca3a5885ba
15 files changed