nn::math::RoundUp Function

Syntax

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

Template Arguments

Name Description
T Type representing a numeric value

Arguments

Name Description
in x Target value
in base Base value

Return Values

Returns the smallest multiple of base that is equal to or greater than x.

Description

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

Revision History

2011/03/01
Initial version.

CONFIDENTIAL