nw::ut::RoundUp Function

Syntax

template <typename ValueT>
ValueT RoundUp(
     ValueT x,
     unsigned int base
);

Arguments

Name Description
in x Number to be rounded up.
in base Value used as the basis for rounding up. Must be a power of two.

Return Values

Returns the value resulting from rounding x up to a multiple of base.

Description

Rounds x up to a multiple of base.


CONFIDENTIAL