Zen API
 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
valueInput value.
toPower of two (e.g., 3 => 2^3 = 8).
Returns
Input value, rounded up.