DescriptionClean up round and align in PartitionAlloc
|partitionDirectMapSize| and |partitionRoundUpToSystemPage| were duplicates of
eachother, modulo the assertion. The rounding function was abused to align
pointers in addition to rounding sizes. With this CL there is one function for
size rounding and two functions to align pointers (up and down).
Note that the reinterpret cast magic was already there. It relies on the fact
that on the platforms we build for, pointers are integers. This CL simply
moves the casts into the function to avoid repetition.
Patch Set 1 #
Total comments: 6
Patch Set 2 : Address review issues #
Depends on Patchset: Messages
Total messages: 5 (3 generated)
|