nn::math::RoundUp Function

Syntax

void * RoundUp(
     void * x,
     u32 base
);

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