Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kSize kSize_Align | ( | kSize | value,
|  | kSize | to
| ) |  |
| related

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.