Rounds up to nearest value that is a multiple of the specified power of two.
This method is typically used to calculate memory addresses that are a multiple of a required power of two.
- Parameters
-
value | Input value. |
to | Power of two (e.g., 3 => 2^3 = 8). |
- Returns
- Input value, rounded up.