nn::math::RoundUp Function

Syntax

template <typename T>
T RoundUp(
     T x,
     u32 base
);

Template Arguments

Name Description
T Type representing a numerical value.

Arguments

Name Description
in x Value to operate on.
in base Standard value.

Return Values

Returns the minimum value that is a multiple of base and greater than or equal to x.

Description

Rounds a value up so it is a multiple of the specified value.

Revision History

2011/03/01
Initial version.

CONFIDENTIAL